From: Itamar Shtull-T. <it...@it...> - 2005-02-13 20:33:40
|
On Sun, 2005-02-13 at 20:38 +0100, Kototama wrote: > the following code (just taken on the example) blocks on recv unless I > decomment the 'send' function. I tested it with stunnel. Select seems to > tell that there is something to read whereas there is nothing. Moreover > why does it block since I am in non blocking mode ? Possibly it's because you're not handling the WantReadError/WantWriteError errors the right way. Check out how Twisted uses pyOpenSSL (or better yet, just use Twisted ;). |