WEBrick Server Hangs in Windows XP
Jun 29
I’ve been dealing with this insanely frustrating problem for a few weeks now. I do most of my Rails development on my Mac, but run instances on both Linux and Windows XP. XP has burned me until I won the battle this evening. I was able to install Rails through a manual process a while back. After getting Rails running on XP I struggled with the WEBrick server. The server would start and listen on port 3000, but when I made any request the browser would hang and so would the Ruby process.
After digging around this evening I stumbled across a link that talks about Winsock getting corrupted every now and then. While it doesn’t mention Ruby specifically I was desperate and decided to give it a try. I ran the following from my XP command prompt:
netsh winsock reset
and waited for a minute. It appeared that everything was reset so I started WEBrick back up and low and behold….it worked! I rebooted a couple of times just to verify that the fix was going to hang around and it sure did.
Read More
