Re: SSL_read() buffer size

radiatejava <[email protected]>
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <CABJk5kmtvN-uQF0xEe4FkDkki+rd=yumnWgROPMuQ2s8NPiG-Q@mail.gmail.com>
Just letting you know that this I am experiencing with non-blocking IO.

On Wed, Feb 5, 2025 at 1:37 PM radiatejava <[email protected]> wrote:
>
> I am experiencing an issue while doing read using the API
> SSL_read(ssl, buffer, num). If the server response size is say 20
> bytes and I am trying to read 10 bytes into a buffer of size 10, the
> call always returns SSL_ERROR_WANT_READ, even the ones that I call
> after SSL_ERROR_WANT_READ, it does not seem to end. If I try to use a
> buffer of size >= 20, it works fine.
>
> Is there any limitation on buffer size to be used in the SSL_read
> call? Shall I always use a sufficiently large buffer size like 1024 or
> more?

-- 
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/CABJk5kmtvN-uQF0xEe4FkDkki%2Brd%3DyumnWgROPMuQ2s8NPiG-Q%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.