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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC