X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Fserver.c;h=606d4436906572167ecda4f2af35b6625b18073a;hb=555214089c7045298f23fea9e060ea931804e75f;hp=c31168e8c47015fe39834c7a8019d0675ce7009e;hpb=a2467fb0dcd123ad6ed0cab821ac9cec5d63d01a;p=oweals%2Fgnunet.git diff --git a/src/util/server.c b/src/util/server.c index c31168e8c..606d44369 100644 --- a/src/util/server.c +++ b/src/util/server.c @@ -701,7 +701,7 @@ process_mst (struct GNUNET_SERVER_Client *client, "Server re-enters receive loop.\n"); #endif GNUNET_CONNECTION_receive (client->connection, - GNUNET_SERVER_MAX_MESSAGE_SIZE, + GNUNET_SERVER_MAX_MESSAGE_SIZE - 1, client->server->idle_timeout, &process_incoming, client); break; @@ -811,7 +811,7 @@ restart_processing (void *cls, #endif client->receive_pending = GNUNET_YES; GNUNET_CONNECTION_receive (client->connection, - GNUNET_SERVER_MAX_MESSAGE_SIZE, + GNUNET_SERVER_MAX_MESSAGE_SIZE - 1, client->server->idle_timeout, &process_incoming, client); return; } @@ -877,7 +877,7 @@ GNUNET_SERVER_connect_socket (struct client = GNUNET_malloc (sizeof (struct GNUNET_SERVER_Client)); client->connection = connection; - client->mst = GNUNET_SERVER_mst_create (GNUNET_SERVER_MAX_MESSAGE_SIZE, + client->mst = GNUNET_SERVER_mst_create (GNUNET_SERVER_MAX_MESSAGE_SIZE - 1, &client_message_tokenizer_callback, server); client->reference_count = 1; @@ -887,7 +887,7 @@ GNUNET_SERVER_connect_socket (struct server->clients = client; client->receive_pending = GNUNET_YES; GNUNET_CONNECTION_receive (client->connection, - GNUNET_SERVER_MAX_MESSAGE_SIZE, + GNUNET_SERVER_MAX_MESSAGE_SIZE - 1, server->idle_timeout, &process_incoming, client); return client; }