News for hackers. Stuff that matters.
Re:"A sleep(1) is put into all SSL_read() and SSL_write() ca... by tptacek on Friday June 25, 2010 @12:30PM (#1461222)
Wait, what? If I call sleep(1), you're saying it's going to sleep for THIRTY EIGHT SECONDS?

People, it's right there in the man pages.

Are you maybe thinking about WinAPI's Sleep? That's ms-denominated. It would make sense that attempting to sleep for 1 millisecond wouldn't work, and would build in the time for the scheduler and the timeslices for every other process. We're talking about OpenSSL and POSIX sleep(3).

Re:"A sleep(1) is put into all SSL_read() and SSL_write() ca... by ComputerGuru on Friday June 25, 2010 @01:23PM (#1461363)
My apologies. Yes, I do mean MS - I started off doing *nix development, but now am doing Win32 programming 18 hours a day.

Please discard my above comment, everyone.