Try just leaving out the fclose($socket) and let PHP close it at the
end for you...
It's probably not IDEAL, but it may at least get you moving forward
with other bigger issues.
Check the http://bugs.php.net/ bugs as well -- Might be something in
there of use. There will be a few zillion bogus o
Thank you! Either of the two options fixed it! My guess is that
HTTP 1.0 does not need the "Connection: close" while HTTP 1.1 does.
So I had to fix one of the two... I did both, just so that my script
has better compatibility in the future.
Thanks again,
Alvar
At 06:59 2007/08/29, Eddie
On Wed 29 Aug 07, Alvar Saenz-Otero wrote:
> Hello,
> I have a small but somewhat annoying issue.
> Whenever I open a socket to another server, the file is read very
> quickly, but it takes the up to 30 seconds or so to close the
> connection...
>
> Here is what I do:
>$sever = "server.mit.edu"
Hello,
I have a small but somewhat annoying issue.
Whenever I open a socket to another server, the file is read very
quickly, but it takes the up to 30 seconds or so to close the connection...
Here is what I do:
$sever = "server.mit.edu";
$url = "/link";
$port = 80;
$user_agent = $_SE
4 matches
Mail list logo