Earlier quoted context omitted.
is sleep(1) noisy? if so, it might be vs timing attacks
Excuse my ignorance: what do you mean by noisy?
"A sleep(1) is put into all SSL_read() and SSL_write() calls..."
21–30 of 52 posts
Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#22Or was this not noticed because all the major frameworks like cherrypy and twisted are still using the pyopenssl wrapper?
Is there any evidence that this bugfix actually changes the performance?
Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#23A second long sleep on every read or write? If this was actually happening, it sounds like it could create unheard of performance issues for any significant transfer. Or was this not noticed because all the major frameworks like cherrypy and twisted are still using the pyopenssl wrapper? Is there any evidence that this bugfix actually changes the performance?
Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#24Earlier quoted context omitted.
it is actually more reliable to sleep than to block. by definition blocking is unreliable because you don't know exactly when it will unblock. You do know when a sleep will end though. I also want a variable delay between writes.
Uhhh. I think you need to study this topic some more. > it is actually more reliable to sleep than to block. by definition blocking is unreliable because you don't know exactly when it will unblock. A block will end when the nic can handle more data. You can't just wait a second and assume the nic can handle the data. That's where the "unreliable" part comes in. You assume it can handle the data, but you are not chec…
Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#25A second long sleep on every read or write? If this was actually happening, it sounds like it could create unheard of performance issues for any significant transfer. Or was this not noticed because all the major frameworks like cherrypy and twisted are still using the pyopenssl wrapper? Is there any evidence that this bugfix actually changes the performance?
Don't you mean a millisecond long sleep? I never saw a sleep function that interpreted its parameter as seconds. Edit: Well, now I know better.
Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#26A second long sleep on every read or write? If this was actually happening, it sounds like it could create unheard of performance issues for any significant transfer. Or was this not noticed because all the major frameworks like cherrypy and twisted are still using the pyopenssl wrapper? Is there any evidence that this bugfix actually changes the performance?
Don't you mean a millisecond long sleep? I never saw a sleep function that interpreted its parameter as seconds. Edit: Well, now I know better.
Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#27Earlier quoted context omitted.
Don't you mean a millisecond long sleep? I never saw a sleep function that interpreted its parameter as seconds. Edit: Well, now I know better.
It does on Linux, from `man 3 sleep`: http://paste.pocoo.org/show/229678/
Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#28Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#29Re: "A sleep(1) is put into all SSL_read() and SSL_write() calls..."
#30ssl/s2_pkt.c:
#ifdef PKT_DEBUG
if (s->debug & 0x01) sleep(1);
#endif
There are two references like that to PKT_DEBUG (read and write); the only other is:ssl/ssl_locl.h:
/*#define PKT_DEBUG 1 */
I suspect this is a non-issue. Interesting though.