php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6778 fsockopen: timeout does not work when nameserver unreachable
Submitted: 2000-09-16 16:20 UTC Modified: 2001-07-21 21:56 UTC
From: thomas at kipar dot de Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.1pl2 OS: Debian 2.2
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: thomas at kipar dot de
New email:
PHP Version: OS:

 

 [2000-09-16 16:20 UTC] thomas at kipar dot de
When doing a plain
fsockopen ("www.anyhost.com",$port,&$errno,&$errstr,$timeout) ...
and the nameserver for this host does not respond, is unreachable or at least extremely slow (host www.anyhost.com produces 'A record not found'), fsockopen won't return after $timeout (3secs for example)!
It hangs for at least 100-120 s.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-21 21:55 UTC] andy@php.net
Please upgrade to the latest version of PHP.  Re-open if
still exists.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 20:01:32 2024 UTC