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 |