php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21020 function fsockopen() is slowly
Submitted: 2002-12-14 17:18 UTC Modified: 2003-01-02 18:48 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: j_phatt at hotmail dot com Assigned:
Status: No Feedback Package: *Network Functions
PHP Version: 4.3.0RC3 OS: RH 8.0
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: j_phatt at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-12-14 17:18 UTC] j_phatt at hotmail dot com
function fsockopen() is slowly

when use function fsockopen() and connect failed 

!!!ERROR!!!
===========================================================
Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in /data/opt/htdocs/mpoweb/.net/netchecksite.php on line 64

Warning: fsockopen() [function.fsockopen]: unable to connect to dcs3401:30000 in /data/opt/htdocs/mpoweb/.net/netchecksite.php on line 64
===========================================================
and slowly to return

netchecksite.php line 64 
============================================================
$sock = fsockopen(dcs3401, 30000, &$num, &$error, 4);
============================================================

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-14 17:40 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-12-14 17:53 UTC] j_phatt at hotmail dot com
Information of OS, Webserver & PHP

OS RedHat Linux 8.0
uname -a
Linux mpoweb.dola.go.th 2.4.18-18.8.0bigmem #1 SMP Wed Nov 13 22:49:22 EST 2002 i686 i686 i386 GNU/Linux

Apache 2.0.43
Compile configuration

./buildconf
./configure \
--prefix=/opt/apache2 \
--enable-modules=all \
--enable-mods-shared=all \
--enable-file-cache \
--enable-echo \
--enable-charset-lite \
--enable-cache  \
--enable-disk-cache \
--enable-mem-cache \
--enable-example \
--enable-ext-filter  \
--enable-case-filter \
--enable-case-filter-in \
--enable-deflate \
--enable-proxy \
--enable-proxy-connect \
--enable-proxy-ftp \
--enable-proxy-http \
--enable-ssl \
--enable-optional-hook-export \
--enable-optional-hook-import \
--enable-optional-fn-import \
--enable-optional-fn-export \
--enable-bucketeer \
--enable-suexec \
--enable-cgid

PHP 4.3.0RC3 
Compile configuration

./buildconf
./configure \
--enable-bcmath \
--enable-calendar \
--enable-ctype \
--enable-dbase \
--enable-dba \
--enable-dbx \
--enable-dio \
--enable-exif \
--enable-ftp \
--enable-freetype-4bit-antialias-hack \
--enable-gd-imgstrttf \
--enable-gd-native-ttf \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbregex \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-pic \
--enable-sablot-errors-descriptive \
--enable-safe-mode \
--enable-shmop \
--enable-sigchild \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-tokenizer \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx \
--enable-xslt \
--enable-yp \
--prefix=/opt/php \
--with-apxs2=/opt/apache2/bin/apxs \
--with-bz2 \
--with-config-file-path=/opt/php/etc \
--with-cpdflib \
--with-curl \
--with-db3 \
--with-dom \
--with-dom-xslt \
--with-dom-exslt \
--with-exec-dir=/opt/php/bin \
--with-expat-dir=/usr \
--with-freetype-dir=/usr \
--with-gd \
--with-gdbm \
--with-gettext \
--with-gmp \
--with-iconv=/usr \
--with-imap=/usr \
--with-imap-ssl=/usr \
--with-java=/opt/j2sdk \
--with-jpeg-dir=/usr \
--with-kerberos \
--with-ldap \
--with-mcal=/usr \
--with-mcrypt=/usr \
--with-mhash=/usr \
--with-ming=/usr \
--with-mysql=/opt/mysql \
--with-mm \
--with-openssl=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-tiff-dir=/usr \
--with-png-dir=/usr \
--with-pspell=/usr \
--with-regex=system \
--with-sablot=/usr \
--with-expat-dir=/usr \
--with-sablot-js=/usr \
--with-t1lib \
--with-ttf \
--with-tsrm-pthreads \
--with-xml \
--with-expat-dir=/usr \
--with-xslt-sablot=/usr \
--with-expat-dir=/usr \
--with-xpm-dir=/usr/X11R6 \
--with-yaz \
--enable-libgcc \
--enable-shared=yes \
--enable-static=yes \
--enable-fast-install \
--with-gnu-ld \
--with-pic \
--with-zlib
 [2002-12-14 23:41 UTC] iliaa@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


What is the exact nature of the problem? Does fsockopen() take longer then 4 seconds to timeout or is there another problem?
Is 'dcs3401' a valid host name that resolves to an IP, or is it an invalid host?
 [2003-01-02 18:48 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC