kuksugen / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

fsockopen to localhost #259

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. just execute fsockopen('localhost', 8080, $errno, $errstr);

What is the expected output? What do you see instead?
Expected to get a resource type. Instead, it just pause at this line, and waits 
until timeout.

What version of the product are you using? On what operating system?
mangoose-3.0 with php-5.2.17 on windows 7 (64bit)

Please provide any additional information below.
fsockopen("php.net",22,$errno,$errstr,10); 
works as expected. It only happens when you try to connec to localhost.

Original issue reported on code.google.com by yasarbayar on 19 Jun 2011 at 10:22

GoogleCodeExporter commented 9 years ago
Could you provide more details please?
What is the setup you're using? OS? 

Original comment by valenok on 19 Jun 2011 at 10:44

GoogleCodeExporter commented 9 years ago
well believe or not I have spent more than 6 hours on this issue. Tested the 
same code on my linux box with apache, had no any issue. Thought this hast to 
do with mongoose. But right after I submit the issue, I found someone else had 
issue with fsockopen on vista box. 

the fix was ridiculously easy. in the hosts file uncomment the line "127.0.0.1  
     localhost". it works flawlessly now. 

thanks and hope this may help some others.

Original comment by yasarbayar on 19 Jun 2011 at 10:51

GoogleCodeExporter commented 9 years ago
Ok, thanks.
Marking this as 

Original comment by valenok on 19 Jun 2011 at 11:13