aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-19 08:38:42 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-19 08:38:42 +0000
commit75297c57a857d0c7c1428bed00e32ed2c8b5389d (patch)
tree12ac4fcf3a9fa16fa83fdccbdde68659fa78d9ce
parent9f5e478feec24e9ff987c00e42c39da9f122c300 (diff)
downloadgnunet-75297c57a857d0c7c1428bed00e32ed2c8b5389d.tar.gz
gnunet-75297c57a857d0c7c1428bed00e32ed2c8b5389d.zip
-removing dead API call
-rw-r--r--src/include/gnunet_server_lib.h8
-rw-r--r--src/util/server.c10
2 files changed, 1 insertions, 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
@@ -240,14 +240,6 @@ GNUNET_SERVER_client_set_timeout (struct GNUNET_SERVER_Client *client,
240 240
241 241
242/** 242/**
243 * Set if a client should finish a pending write when disconnecting.
244 */
245void
246GNUNET_SERVER_client_set_finish_pending_write (struct GNUNET_SERVER_Client *client,
247 int finish);
248
249
250/**
251 * Disable the warning the server issues if a message is not acknowledged 243 * Disable the warning the server issues if a message is not acknowledged
252 * in a timely fashion. Use this call if a client is intentionally delayed 244 * in a timely fashion. Use this call if a client is intentionally delayed
253 * for a while. Only applies to the current message. 245 * for a while. Only applies to the current message.
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,
1000} 1000}
1001 1001
1002 1002
1003void
1004GNUNET_SERVER_client_set_finish_pending_write (struct GNUNET_SERVER_Client *client,
1005 int finish)
1006{
1007 client->finish_pending_write = finish;
1008}
1009
1010
1011/** 1003/**
1012 * Notify the server that the given client handle should 1004 * Notify the server that the given client handle should
1013 * be kept (keeps the connection up if possible, increments 1005 * be kept (keeps the connection up if possible, increments
@@ -1202,7 +1194,7 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client)
1202 1194
1203 if (client->persist == GNUNET_YES) 1195 if (client->persist == GNUNET_YES)
1204 GNUNET_CONNECTION_persist_ (client->connection); 1196 GNUNET_CONNECTION_persist_ (client->connection);
1205 GNUNET_CONNECTION_destroy (client->connection, client->finish_pending_write); 1197 GNUNET_CONNECTION_destroy (client->connection, GNUNET_NO);
1206 1198
1207 if (client->server->mst_destroy != NULL) 1199 if (client->server->mst_destroy != NULL)
1208 client->server->mst_destroy (client->server->mst_cls, client->mst); 1200 client->server->mst_destroy (client->server->mst_cls, client->mst);