1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Jilles Tjoelker 2008-05-24 20:55:27 +00:00 committed by jilles
parent d917a439da
commit 647c3cb4da

View File

@ -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)