Add-Ons & Services

HTTPServer on ipad

Please post support and help requests here.
Posts: 2
Joined: 04 Aug 2012, 10:01

HTTPServer on ipad

Postby himu » 04 Aug 2012, 10:16


I have created an ipad app using POCO. When the application starts, a thread is created which starts a Poco::Net::HTTPServer. A UIWebView loads content from this server. This works. However, when the application goes into the background, the server continues to accept connections, but does not respond. And once the device sleeps (i.e. press but do not hold the power button), the server no longer accepts connections (even when the application is opened again). I must terminate and restart in order to continue using the application.

Does anyone have experience using POCO::Net::HTTPServer on an iphone or ipad? Do I need to restart the server after applicationDidBecomeActive?

Thank you!

Posts: 1180
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: HTTPServer on ipad

Postby guenter » 04 Aug 2012, 21:18

I don't know yet what's happens in detail with the HTTPServer thread or the socket when the app goes to background, so it's best to stop and destroy the HTTPServer instance when your app goes to background, and create a new one when it becomes active again.

Posts: 2
Joined: 04 Aug 2012, 10:01

Re: HTTPServer on ipad

Postby himu » 12 Aug 2012, 17:48

Hello guenter,

We took this approach and it solved our problems.

Thank you for your time!

Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests