fixed traffic_in counter in ClientSocket.c
[NeonServV5.git] / src / ClientSocket.c
index cb40cc7dc9eb1afe311919d685ca16de153846e7..a1a5726a567eef6c33ad81e043010276e1329c16 100644 (file)
@@ -245,6 +245,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);