php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6392 socket_set_timeout doesn't work
Submitted: 2000-08-28 03:47 UTC Modified: 2000-10-02 23:22 UTC
From: root at mobigym dot se Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.1pl2 OS: Linux 2.2
Private report: No CVE-ID: None
 [2000-08-28 03:47 UTC] root at mobigym dot se
Sometimes fgets hang in an HTTP connection because of my laggy Internet connection.

I've tried to use socket_set_timeout as a solution to the problem, but it doesn't work.

socket_set_timeout ( $fp, 120, 0 );

But fgets still hangs sometimes and my script won't continue.

What am I doing wrong? Or is this a bug?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-02 19:24 UTC] sniper@php.net
Is php complaining about timeout?

Try adding this:

http://www.php.net/manual/function.set-time-limit.php

--Jani
 [2000-10-02 23:22 UTC] sniper@php.net
No feedback.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 03:01:33 2024 UTC