Re: Other socket stuff

From: Date: Thu, 27 May 1999 15:25:14 +0000
Subject: Re: Other socket stuff
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-6073@lists.php.net to get a copy of this message
On Thu, May 27, 1999 at 08:10:02AM -0400, Rasmus Lerdorf wrote: > > Well, adding that feature was 1) copying in connect_nonb, 2) adding the > > timeout parameter handling in php3_fsockopen, 3) changing two connect calls. > > Testing was performed against a packet dropping firewall and a normal server > > using the sockio test script. As usual, one spends most of his time writing > > documentation. > > The fopen_wrapper code could prpbably use some way to set a timeout as > well. It's basically the same thing. > > -Rasmus Changing the fopen_wrapper code to support a connection timeout is rather easy. Changing the API for all 15,000 functions which use the fopen_wrapper function is a nightmare. I could think of providing a global connection_timeout variable which could be easily set/read and applied. That would avoid adapting every single function to support an additional timeout parameter. Thoughts? -- Regards, Sascha Schumann Consultant -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#6073) next »