Android M doze mode and posix native socket freeze

I don’t know if anyone could help to think that Android M is floating, since there are not many. I am experiencing strange behavior with my application. I use native posix as tcp client sockets to create some connections. These sockets work well until the dose or standby modes of the application are activated ... because as soon as they do or the phone is reset, I cannot let my application work again. The only solution is to clear the application data or reinstall the application on the phone. I still have not studied what errno of subsequent connections is, those that after doze mode probably sound too strange that to reinstall the appix tcp application, you must complete a complete reinstallation of the application again. Tomorrow I will be able to post some details regarding this issue. Has anyone encountered a similar problem on Android M after this dose prevented network access? Thanks!

+5
source share

All Articles