-removing dead API call
authorChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 08:38:42 +0000 (08:38 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 08:38:42 +0000 (08:38 +0000)
src/include/gnunet_server_lib.h
src/util/server.c

index 7fb8ae76ce034be6fa9a081c6f824b56d53743f3..6fe9e79a795d7bc954aad77d50716a5800588f5c 100644 (file)
@@ -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
index dc8b402da9ab6374d4812ef95a28d99d18671447..9f3d8929cfd44a35e59db833f79d9ed1b252b997 100644 (file)
@@ -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);