enet
enet copied to clipboard
ENet SIGPIPE error on iOS
I use enet on iOS, and met some error. When I connect to a server by enet, and lock the screen, the application enter background. And then I unlock the screen, the socket is closed, but no disconnect message notify. So I always met SIGPIPE error.
I think enet need notify the user all peer is disconnect in such a situation.
i have the same problem. Did you managed to fix this? or any ideas for a workaround?
This is standard iOS behavior - all sockets forcefully closed and destroyed by iOS after app goes to background. Your should handle "Background"/"Foreground" events in your app and implement destroy/reconnect. More: http://stackoverflow.com/questions/14876359/socket-connection-killed-after-ios-app-goes-to-background