Bug fix: when using tls, if a stanza is bigger than the buffer of 4096 in event.c, the stanza will not be read as select will return 0 on the ssl socket and the data will be in ssl buffers. Partial fix, only for Linux for now

This commit is contained in:
Vlad-Mihai Sima
2012-01-01 20:09:18 +01:00
parent bdd70fcfaf
commit 511606835d
5 changed files with 25 additions and 3 deletions

View File

@@ -152,6 +152,11 @@ int tls_is_recoverable(int error)
|| error == SSL_ERROR_WANT_ACCEPT);
}
int tls_pending(tls_t *tls)
{
return SSL_pending(tls->ssl);
}
int tls_read(tls_t *tls, void * const buff, const size_t len)
{
int ret = SSL_read(tls->ssl, buff, len);