mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
increase disconnect buffer and get rid of some magic 510 values
This commit is contained in:
parent
1c99bf78c7
commit
27546354ca
5 changed files with 15 additions and 12 deletions
|
|
@ -51,7 +51,7 @@ static void sig_disconnect(NET_DISCONNECT_REC *rec)
|
|||
char buf[512];
|
||||
int count, ret;
|
||||
|
||||
/* check if there's any data waiting in socket. read max. 5kB so
|
||||
/* check if there's any data waiting in socket. read max. 9kB so
|
||||
if server just keeps sending us stuff we won't get stuck */
|
||||
count = 0;
|
||||
do {
|
||||
|
|
@ -61,7 +61,7 @@ static void sig_disconnect(NET_DISCONNECT_REC *rec)
|
|||
net_disconnect_remove(rec);
|
||||
}
|
||||
count++;
|
||||
} while (ret == sizeof(buf) && count < 10);
|
||||
} while (ret == sizeof(buf) && count < 18);
|
||||
}
|
||||
|
||||
static int sig_timeout_disconnect(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue