1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-26 19:57:22 +08:00

bug fixing

This commit is contained in:
stefanocasazza
2015-06-24 18:16:49 +02:00
parent 1a0994b293
commit a59a593bc7
56 changed files with 2249 additions and 2229 deletions

View File

@@ -352,7 +352,7 @@ protected:
static UTimeVal* chronometer;
static bool log_request_partial;
static long time_between_request, time_run;
static uint32_t ncount, nrequest, resto, uri_offset, uri_len;
static uint32_t ncount, nrequest, resto, uri_offset;
static void endRequest();
static bool startRequest();

View File

@@ -47,7 +47,7 @@ public:
#endif
protected:
static iPFpv on_message;
static vPFi on_message;
static UCommand* command;
static RETSIGTYPE handlerForSigTERM(int signo);

View File

@@ -89,7 +89,7 @@ vClientImage = new client_type[UNotifier::max_connection]; } }
(void) strcpy(UServer_Base::mod_name[0], "["#name"] "); } }
# define U_SRV_LOG( fmt,args...) { if (UServer_Base::isLog()) ULog::log("%s" fmt, UServer_Base::mod_name[0] , ##args); }
# define U_SRV_LOG_WITH_ADDR(fmt,args...) { if (UServer_Base::isLog()) ULog::log("%s" fmt " %v", UServer_Base::mod_name[0] , ##args, UServer_Base::pClientIndex->logbuf->rep); }
# define U_SRV_LOG_WITH_ADDR(fmt,args...) { if (UServer_Base::isLog()) ULog::log("%s" fmt " %v", UServer_Base::mod_name[0] , ##args, UServer_Base::pClientImage->logbuf->rep); }
#endif
class UHTTP;
@@ -390,7 +390,7 @@ public:
}
static uint32_t nClientIndex;
static UClientImage_Base* pClientIndex;
static UClientImage_Base* pClientImage;
static UClientImage_Base* vClientImage;
static UClientImage_Base* eClientImage;
@@ -740,9 +740,9 @@ protected:
vClientImage = new client_type[UNotifier::max_connection];
U_INTERNAL_DUMP("vClientImage = %p pClientIndex = %p", vClientImage, pClientIndex)
U_INTERNAL_DUMP("vClientImage = %p pClientImage = %p", vClientImage, pClientImage)
U_INTERNAL_ASSERT_EQUALS(vClientImage, pClientIndex)
U_INTERNAL_ASSERT_EQUALS(vClientImage, pClientImage)
}
#ifdef DEBUG