diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-06 04:55:22 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-06 04:55:22 +0800 |
commit | 0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe (patch) | |
tree | dff85c8820f9175c9856497daf4e5396f8b92e20 /mbbsd | |
parent | 6308dc81fbc5cc89f450e7beadc2cf710c0696e9 (diff) | |
download | pttbbs-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
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 2 |
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) { |