in reply to IO::Socket::SSL buffering issue?

When using sysread, your read length needs to be the same size as your systems' IO buffer. This is usually 4 or 8 k which is why 4k worked well for you.


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

Replies are listed 'Best First'.
Re^2: IO::Socket::SSL buffering issue?
by althepal (Acolyte) on Apr 25, 2005 at 08:38 UTC

    That makes sense, but how come I never noticed a problem before I started using SSL?

    Also, how do I determine my systems IO buffer?

      I don't know. Which system? You could try sending long packets and see how many reads it takes to empty the buffer.


      s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}