summaryrefslogtreecommitdiff
path: root/src/core/net-sendbuffer.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2008-05-24 20:55:27 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-05-24 20:55:27 +0000
commit647c3cb4da4c40ed1373be0fab2a43b83f9692e8 (patch)
tree8e67c7ed191bb5f5a0824f4ad067ac7d0058a121 /src/core/net-sendbuffer.c
parentd917a439da5d18ab9c9e1abfb29644ed3edea449 (diff)
downloadirssi-647c3cb4da4c40ed1373be0fab2a43b83f9692e8.zip
Read more bytes at a time from servers.
(at most 2048 instead of 512) This should reduce syscalls and TCP packets. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4849 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/net-sendbuffer.c')
-rw-r--r--src/core/net-sendbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/net-sendbuffer.c b/src/core/net-sendbuffer.c
index 0170325b..4bd34317 100644
--- a/src/core/net-sendbuffer.c
+++ b/src/core/net-sendbuffer.c
@@ -146,7 +146,7 @@ int net_sendbuffer_send(NET_SENDBUF_REC *rec, const void *data, int size)
int net_sendbuffer_receive_line(NET_SENDBUF_REC *rec, char **str, int read_socket)
{
- char tmpbuf[512];
+ char tmpbuf[2048];
int recvlen = 0;
if (read_socket)