Re: How to check port conection? socket_connect and fsockopen have problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Heh...
I mean not LISTENING on 80 port! I mean LISTENING on each of these
connections!
For example, My IP is 192.168.18.1 and I try to check port 21 on IP
192.168.18.33.
When I call fsockopen, apache open 2(!) connections:

192.168.18.1:3256    192.168.18.1:0        LISTENING                (3256 -
random port on my IP)
192.168.18.1:3256    192.168.18.33:21    SYN_SENT

When timeout occurs, second connections disappeared, but first exist until
apache restart!
And I don't do anything else! Just call fsockopen... :(

Best regargs,
Sherry.

"B.A.T. Svensson" <B.A.T.Svensson@xxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:D291F33C586C8E48B95C26F8C805513A01A3DA94@xxxxxxxxxxxxxxxx
> LISTNING is the state a server (listner) normally
> should be in, or do I miss something here?
>
> That you can replicate it on anotehr machines, does not
> say that very much. It can still be 1) the network, 2)
> wrong handling of sockets in the program, 3) something
> else.
>
> I guess I need to have a closer look at your first mail
> again to better understadn the problem, but right now I
> am bit sleepy so that will have to wait until tomorrow.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux