News for hackers. Stuff that matters.
Re:"A sleep(1) is put into all SSL_read() and SSL_write() ca... by drawkbox on Friday June 25, 2010 @12:34PM (#1461233)
True however Sleep on windows is different than sleep on posix/unix.

Sleep() on windows takes ms.

sleep() on nix takes seconds.

Windows:

    VOID WINAPI Sleep(
      __in  DWORD dwMilliseconds
    );
Sleep(1) is as fast as it can go which turns out to be 15-20ms.

nix:

    #include <unistd.h>
    unsigned int
    sleep(unsigned int seconds);
usleep() can be used for more granular delay on nix.

There are no comments on this comment yet.