From: Christian Grothoff Date: Thu, 19 Apr 2012 08:38:42 +0000 (+0000) Subject: -removing dead API call X-Git-Tag: initial-import-from-subversion-38251~13885 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75297c57a857d0c7c1428bed00e32ed2c8b5389d;p=oweals%2Fgnunet.git -removing dead API call --- diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h index 7fb8ae76c..6fe9e79a7 100644 --- a/src/include/gnunet_server_lib.h +++ b/src/include/gnunet_server_lib.h @@ -239,14 +239,6 @@ GNUNET_SERVER_client_set_timeout (struct GNUNET_SERVER_Client *client, struct GNUNET_TIME_Relative timeout); -/** - * Set if a client should finish a pending write when disconnecting. - */ -void -GNUNET_SERVER_client_set_finish_pending_write (struct GNUNET_SERVER_Client *client, - int finish); - - /** * Disable the warning the server issues if a message is not acknowledged * in a timely fashion. Use this call if a client is intentionally delayed diff --git a/src/util/server.c b/src/util/server.c index dc8b402da..9f3d8929c 100644 --- a/src/util/server.c +++ b/src/util/server.c @@ -1000,14 +1000,6 @@ GNUNET_SERVER_client_set_timeout (struct GNUNET_SERVER_Client *client, } -void -GNUNET_SERVER_client_set_finish_pending_write (struct GNUNET_SERVER_Client *client, - int finish) -{ - client->finish_pending_write = finish; -} - - /** * Notify the server that the given client handle should * be kept (keeps the connection up if possible, increments @@ -1202,7 +1194,7 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client) if (client->persist == GNUNET_YES) GNUNET_CONNECTION_persist_ (client->connection); - GNUNET_CONNECTION_destroy (client->connection, client->finish_pending_write); + GNUNET_CONNECTION_destroy (client->connection, GNUNET_NO); if (client->server->mst_destroy != NULL) client->server->mst_destroy (client->server->mst_cls, client->mst);