On Wed, Jan 14, 2004 at 04:52:04PM +0100, Gabriel Kihlman wrote: > > I needed SSL with POE so I downloaded the sslpoe-package. > Great stuff but I found out that I needed this (in SslServer):
[patch applied, thanks] > I have not tested it very much but it shows my problem though.. > If a non-ssl client connected and did not do anything everything just > hung.. Net::SSLeay::accept only returns if it got bad data or a > disconnect.. Mmmm single threaded apps.. > > I probably have to increase the timeout step by step since some > clients may be slow or the connection may be lagging. > > Anyone have a better solution? Please let us know when you've found a good TIMEOUT value. I'll use 5000 (five seconds) for now. Does anyone know if Net::SSLeay::accept() starts by sending or receiving data? If it's the latter, we can defer calling it until select() says there's data ready. TIEHANDLE can do everything up to the accept() call, then we can wait for the client to send something before accepting the connection. Otherwise I'm not sure how to get into Net::SSLeay to make its accept() not block. It's just a thin wrapper to a C library. Does anyone have experience here? Does a different SSL module support it? -- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
