X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FClientSocket.c;h=52316fd3d8f3d7a0a65cb687058b5dc794fe4152;hb=05c8f77dd9d441e588b8a3ec2547bb1874ac0914;hp=cb40cc7dc9eb1afe311919d685ca16de153846e7;hpb=f28a6cf114ec097583236a82aab0dbf52c4852c4;p=NeonServV5.git diff --git a/src/ClientSocket.c b/src/ClientSocket.c index cb40cc7..52316fd 100644 --- a/src/ClientSocket.c +++ b/src/ClientSocket.c @@ -217,7 +217,9 @@ int clientsocket_parseorder_top(unsigned int tid) { static IOHANDLER_CALLBACK(socket_callback) { struct ClientSocket *client = event->iofd->data; + #ifdef HAVE_THREADS unsigned int tid; + #endif switch(event->type) { case IOEVENT_CONNECTED: client->flags |= SOCKET_FLAG_CONNECTED; @@ -245,6 +247,7 @@ static IOHANDLER_CALLBACK(socket_callback) { tid = (unsigned int) pthread_self_tid(); clientsocket_start_of_recv(tid); #endif + client->traffic_in += strlen(event->data.recv_str); parse_line(client, event->data.recv_str); #ifdef HAVE_THREADS clientsocket_end_of_recv(tid);