#20759 [NEW]: fopen sometimes hangs

2002-12-02 Thread mitra_php
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.2.3
PHP Bug Type: HTTP related
Bug description:  fopen sometimes hangs

Sometimes fopen of an http URL just sits there - no error, no results,
typically when it does this PHP refuses to output ANY output for that
page. 

FOr example fopen(http://anyurl.com,r;) works fine but

fopen(http://reptile.peerfear.org/reptile/servlet/sitefilter/http/www.cnn.com/WORLD,r;)


Just sits there for ever. 

Its possible that reptile is misbehaving, although this URL works fine in
a browser, and in any case fopen shouldn't just sit there.
-- 
Edit bug report at http://bugs.php.net/?id=20759edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20759r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20759r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20759r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20759r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20759r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=20759r=support
Expected behavior:  http://bugs.php.net/fix.php?id=20759r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=20759r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=20759r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=20759r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20759r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=20759r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=20759r=isapi




#20759 [Fbk-Opn]: fopen sometimes hangs

2002-12-02 Thread mitra_php
 ID:   20759
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.2.3
 New Comment:

Thanks for the suggestion, but the PHP timeout isn't the problem - its
fopen that is hanging. It should fail allowing the script to handle the
error gracefully (in my case moving on to the next URL). The PHP
timeout only fails the whole PHP script if nothing happens in 60
seconds.


Previous Comments:


[2002-12-02 04:24:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

In PHP 4.3, there is a new ini setting which allows setting a default
timeout.
Please try PHP-4.3.0RC2 from http://qa.php.net.
Be sure to read the NEWS file for info about the timeout option. (the
default is 60 seconds).



[2002-12-02 04:21:55] [EMAIL PROTECTED]

Sometimes fopen of an http URL just sits there - no error, no results,
typically when it does this PHP refuses to output ANY output for that
page. 

FOr example fopen(http://anyurl.com,r;) works fine but

fopen(http://reptile.peerfear.org/reptile/servlet/sitefilter/http/www.cnn.com/WORLD,r;)


Just sits there for ever. 

Its possible that reptile is misbehaving, although this URL works fine
in a browser, and in any case fopen shouldn't just sit there.




-- 
Edit this bug report at http://bugs.php.net/?id=20759edit=1