Commit 4a90d914cc1ed538e38306b15208e6428f33b811

Authored by Perry Werneck
1 parent c821504d
Exists in master and in 1 other branch develop

Testing performance of the WaitForReady method (windows).

client/src/testprogram/testprogram.cc
... ... @@ -131,7 +131,9 @@
131 131  
132 132 cout << "------------------------------" << endl;
133 133 auto start = time(nullptr);
134   - host.waitForReady(5);
  134 + for(size_t ix = 0; ix < 100; ix++) {
  135 + host.waitForReady(5);
  136 + }
135 137 cout << "Time: " << (time(nullptr) - start) << std::endl;
136 138 cout << "------------------------------" << endl;
137 139  
... ...
server/src/core/windows/inout.c
... ... @@ -46,7 +46,7 @@ unsigned char * ipc3270_pack_error(const GError *error, size_t * szPacket) {
46 46  
47 47 static const char * error_response = "error";
48 48  
49   - debug("%s(%d,%s)",__FUNCTION__,(int) error_response,error->message);
  49 + debug("%s(%d,%s)",__FUNCTION__,(int) error->code, (const char *) error->message);
50 50  
51 51 *szPacket = strlen(error_response) + 1 + (sizeof(guint16) * 2) + strlen(error->message);
52 52  
... ...