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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: root at mobigym dot se
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 22:00:01 2026 UTC