robbiehanson/CocoaHTTPServer — Issue #10: iOS server socket dies on screen lock
Author: oscahie
Created: 2012-02-24 16:55:15+00:00
State: open

It seems the server socket is dieing when a device with iOS 5+ goes to sleep. This is easily reproducible with the iPhoneHTTPServer project. Just run it with the default configuration (connected to a WiFi network to verify that the server is reachable), then lock the device (the app can be in the foreground or in the background, doesn't matter) and unlock it again. Try to connect to the web server and the connection will be refused.