php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10765 timeout doesn't work
Submitted: 2001-05-09 16:43 UTC Modified: 2001-12-13 06:24 UTC
From: wuxinan at 263 dot net Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.5 OS: Windows 98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wuxinan at 263 dot net
New email:
PHP Version: OS:

 

 [2001-05-09 16:43 UTC] wuxinan at 263 dot net
timeout parameter in fsockopen() doesn't work
socket_set_timeout() doesn't work.

I am using PHP 4.0.5 (binary release, CGI version) in Windows 98.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-10 04:44 UTC] sniper@php.net
Add some short script which demonstrates how they don't work.

--Jani

 [2001-05-10 13:39 UTC] wuxinan at 263 dot net
Actually I am making a Webster dictionary Web Interface:


$fp = fsockopen($webster_server, $webster_port, $err, $errno, 5);
socket_set_timeout($fp, 5);

Here 5 seconds timeout in fsockopen() doesn't work. If it cannot connet, it will simply wait until the maximun script execution time (default 30 seconds in php.ini) reached.

socket_set_timeout() seems to be not implemented in this version.

(PHP 4.0.5, Windows CGI binary release)
 [2001-11-21 07:39 UTC] mfischer@php.net
Can you try latest RC if the problem still exists

http://phpuk.org/~james/php-4.1.0RC3-win32.zip

Feedback.
 [2001-12-13 06:24 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Apr 08 06:01:25 2020 UTC