views:

50

answers:

0

Hi all,

I am facing the same issue regarding restarting the server multiple times. ( on: http://code.google.com/p/cocoahttpserver/issues/detail?id=8&can=1 )

I am doing it in the viewWillAppear and stop the server in viewWillDisappear, then I also release the httpServer object.

The problem is when I do this multiple times the server fails to start giving the message.

2010-02-19 19:04:12.955 Project[3042:207] Failed to start HTTP Server: Error Domain=AsyncSocketErrorDomain Code=-1 UserInfo=0x5c094f0 "General CFSocket error" 2010-02-19 19:04:12.955 Project[3042:207] Error starting HTTP Server:Error Domain=AsyncSocketErrorDomain Code=-1 UserInfo=0x5c094f0 "General CFSocket error"

Now when I do anything in my application after this my application crashes.

I am using the latest code. So the solution does not works for me.

Guys please help me out as soon as possible.

Thanks,

Madhup