On Tue, 2002-04-23 at 13:58, Rocco Caputo wrote:
> It can take a long time to build a TCP socket and even longer to
> determine the socket can't be built.  Connecting in non-blocking mode
> will let other things happen while TCP works out the details.  Once
> the socket is built, it can be made to block again.

So I take it that what you are saying is that "connect" could block for
a long time.

> I've used POE::Wheel::SocketFactory to create plain sockets without
> blocking.  Once the connection succeeds, I've made it secure by
> turning blocking back on and tie()'ing a modified Net::SSLeay::Handle
> class to the socket.
> 
> See <http://poe.dynodns.net/~troc/tmp/poing-ssl.perl>.  It requires
> POE 0.19.

Thank you.  I did take a look, very nifty.  This probably cuts down most
of the hangs.  I wonder whether there is a way to incorporate this into
PoCoCl::UserAgent.

Pete


Reply via email to