Search found 2 matches

by semperfi
Sat Nov 22, 2014 8:07 pm
Forum: PHP DNS API
Topic: fsockopen timeout
Replies: 2
Views: 24926

Re: fsockopen timeout

No worries, no credit was necessary, just trying to help out.

Actually, if php provided a way to timeout on gethostbyname()/gethostbyaddr() without having to shell out, I don't think I would have ever even found your library. Glad I did though.
by semperfi
Tue Nov 18, 2014 4:37 pm
Forum: PHP DNS API
Topic: fsockopen timeout
Replies: 2
Views: 24926

fsockopen timeout

Query timeout isn't working for me. Using v1.02 from github, line 439 if (!$socket=fsockopen($host,$this->port,$this->timeout)) fsockopen expects args 3 and 4 to be errno,errstr, and arg 5 to be the timeout. I have modified my version locally and timeout seems to be working now. if (!$socket=fsockop...