From 75297c57a857d0c7c1428bed00e32ed2c8b5389d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 19 Apr 2012 08:38:42 +0000 Subject: [PATCH] -removing dead API call --- src/include/gnunet_server_lib.h | 8 -------- src/util/server.c | 10 +--------- 2 files changed, 1 insertion(+), 17 deletions(-) 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); -- 2.25.1