mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Tell OpenSSL that our write buffer may move (although the content remains the same).
This fixes disconnects when sending large amounts of data to the server. Note that it assumes that write retries will retry the same data; a reasonable assumption, but it is not necessary for any normal write(). git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5095 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3c30196ad4
commit
cb68d5f4e6
@ -317,6 +317,9 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, const char *mycer
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE |
|
||||
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||
|
||||
chan = g_new0(GIOSSLChannel, 1);
|
||||
chan->fd = fd;
|
||||
chan->giochan = handle;
|
||||
|
Loading…
Reference in New Issue
Block a user