From d61ad23ddcc47694924f539a0f469a24a19c7421 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Fri, 2 Jul 2010 13:02:32 +0000 Subject: [PATCH] remove max buffer size from socket create calls --- src/transport/plugin_transport_tcp.c | 5 ++--- src/transport/test_transport_api_tcp_peer1.conf | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 51d6cee1b..47936b336 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -1199,8 +1199,7 @@ tcp_plugin_send (void *cls, return -1; } sa = GNUNET_CONNECTION_create_from_sockaddr (plugin->env->sched, - af, sb, sbs, - GNUNET_SERVER_MAX_MESSAGE_SIZE - 1); + af, sb, sbs); if (sa == NULL) { #if DEBUG_TCP @@ -2097,7 +2096,7 @@ tcp_plugin_server_read (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc * that wants to connect to us! Send a message to establish a connection. */ sock = GNUNET_CONNECTION_create_from_sockaddr (plugin->env->sched, AF_INET, (struct sockaddr *)&in_addr, - sizeof(in_addr), GNUNET_SERVER_MAX_MESSAGE_SIZE - 1); + sizeof(in_addr)); if (sock == NULL) { plugin->server_read_task = diff --git a/src/transport/test_transport_api_tcp_peer1.conf b/src/transport/test_transport_api_tcp_peer1.conf index 5f7dd8330..e09a56f3a 100644 --- a/src/transport/test_transport_api_tcp_peer1.conf +++ b/src/transport/test_transport_api_tcp_peer1.conf @@ -32,9 +32,9 @@ MINIMUM-FRIENDS = 0 [transport] PLUGINS = tcp -#DEBUG = YES +DEBUG = NO #PREFIX = xterm -T transport2 -e gdb --command=cmd --args -#PREFIX = valgrind --tool=callgrind +#PREFIX = valgrind --tool=memcheck --leak-check=full --log-file=transport%p ACCEPT_FROM6 = ::1; ACCEPT_FROM = 127.0.0.1; NEIGHBOUR_LIMIT = 50 -- 2.25.1