From 0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 5 Nov 2004 20:55:22 +0000 Subject: set socket send buf to 4kb git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2313 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 9693c6dd..80b541b0 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1236,6 +1236,8 @@ bind_port(int port) sz = 1024; setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (void*)&sz, sizeof(sz)); + sz = 4096; + setsockopt(sock, SOL_SOCKET, SO_SNDBUF, (void*)&sz, sizeof(sz)); xsin.sin_port = htons(port); if (bind(sock, (struct sockaddr *) & xsin, sizeof xsin) < 0) { -- cgit v1.2.3