Blocking SSL_write possibly buffering?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

I am using OpenSSL in *blocking* mode, with SSL_MODE_AUTO_RETRY set. I have
this situation:

Peer 1 (server):
SSL_write 16K bytes --> success
SSL_write N bytes, N<16K --> success
SSL_read (correctly hangs waiting for data)

Peer 2 (client):
SSL_read 16K+N bytes --> hangs

That is, Peer 1 breaks a data buffer that's larger than 16K in two pieces
and it succeeds writing both pieces but does no more writes (calls
SSL_read), while Peer 2 attempts to read the whole thing and hangs.

I'm reasoning that I'd get this behavior if for some reason the second call
to SSL_write decided to buffer up the data rather than sending it
immediately, but my reading of the documentation is that it's not supposed
to do that.

Any help is greatly appreciated!

Thanks,
Emil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20151026/2ca59fe1/attachment.html>


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux