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


In reply to Re^2: Using read/syswrite with IO::Socket::SSL by Bloehdian
in thread Using read/syswrite with IO::Socket::SSL by Bloehdian

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.