Re: HTTP/Request does not close sockets

From: Date: Sat, 13 Mar 2004 10:48:04 +0000
Subject: Re: HTTP/Request does not close sockets
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26373@lists.php.net to get a copy of this message
It's a good idea to post it as a bug http://pear.php.net/bugs/report.php?package=HTTP_Request Regards Alan Hannes Gassert wrote:
Hi, 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.diff. 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. Best regards and thanks for PEAR to all of you. :) Hannes Gassert
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

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