Re: HTTP/Request does not close sockets

From: Date: Sat, 13 Mar 2004 10:39:03 +0000
Subject: Re: HTTP/Request does not close sockets
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26374@lists.php.net to get a copy of this message
Hi, thank you for pointing the problem out - though I haven't yet had time to look into it myself. Could you please file a bug for that package containing all information? Otherwise it might get lost in the work ... which it shouldn't. Thank you, Stefan On 13 Mar 2004 at 0:53, Hannes Gassert wrote: > I'm using HTTP/Request to do some bulk url checking of some thousand > addresses in a database. Or let's say I tried ;) After passing some > boundary, I always got nothing but that message saying > > *************** > Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: > Temporary failure in name resolution in /usr/share/php/Net/Socket.php > on line 106 *************** > > Of course, HTTP/Request does not close the sockets it is opening! > > I fixed this by simply adding $this->_sock->disconnect(); on line 562 > of Request.php. You find the trivial patch for this on > > http://mediagonal.ch/employees/hannes/pear/http_request_disconnect.dif > f. It's my very first one, so I apologize for any stupid mistakes I > might have made. I'm not aware of anything this patch could possibly > break.

« previous php.pear.dev (#26374) next »