summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 04:55:22 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 04:55:22 +0800
commit0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe (patch)
treedff85c8820f9175c9856497daf4e5396f8b92e20
parent6308dc81fbc5cc89f450e7beadc2cf710c0696e9 (diff)
downloadpttbbs-0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe.tar
pttbbs-0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe.tar.gz
pttbbs-0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe.tar.bz2
pttbbs-0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe.tar.lz
pttbbs-0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe.tar.xz
pttbbs-0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe.tar.zst
pttbbs-0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe.zip
set socket send buf to 4kb
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2313 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 2 insertions, 0 deletions
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) {