in reply to Re: Using read/syswrite with IO::Socket::SSL
in thread Using read/syswrite with IO::Socket::SSL
O.k., boys and girls,
Your contributions made things clearer.
I am not very familiar with SSL, it is not the main task in my project, nevertheless I have to get an SSL-socket to run in non-blocking way.
So, I studied the cited documentation on it and found the following (in the example code):
# with SSL a call for reading n bytes does not result in reading of n # bytes from the socket, but instead it must read at least one + full SSL # frame. If the socket has no new bytes, but there are unproce +ssed data # from the SSL frame can_read will block! # wait for data on socket $sel->can_read();
I am a little bit confused. My app must not block, so, if I would integrate the sample code or similar into my while-loop, I COULD run into problems due to a blocking can_read()?
Or am I wrong?
And: If am right, how could I workaround this problem?
Could You please explain the cited text of the documentation in the context of my problem.
Cheers
Bloehdian
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using read/syswrite with IO::Socket::SSL
by noxxi (Pilgrim) on Oct 26, 2016 at 20:07 UTC | |
|
Re^3: Using read/syswrite with IO::Socket::SSL
by tybalt89 (Monsignor) on Oct 26, 2016 at 15:21 UTC | |
by Bloehdian (Beadle) on Oct 26, 2016 at 17:31 UTC | |
by tybalt89 (Monsignor) on Oct 26, 2016 at 17:52 UTC |