AndroidAsync icon indicating copy to clipboard operation
AndroidAsync copied to clipboard

Opening on same port and network disconnect case

Open SunMaungOo opened this issue 11 years ago • 1 comments

What will happen if I call listen() again. I mean I have already started an AsyncHttpServer on port 8000 and then I call listen() again on same port like below.

AsyncHttpServer server = new AsyncHttpServer();

server.listen(8000); server.listen(8000);

How does AsyncHttpServer handle such case?

Does AsyncHttpServer also handle network disconnect event? Example I have already listen AsyncHttpServer then the Android's network become disconnected.After network connect again does AsyncHttpServer still work or do I need to call listen() method again(Assume the IP address does not change)?

SunMaungOo avatar Jan 18 '15 08:01 SunMaungOo

Screenshot 2020-05-31 at 1 44 45 PM

This scenario isn't fixed yet. It's not disconnecting properly.

Temporarily you can fix this by mAsyncServer.dump()

geekykant avatar May 31 '20 08:05 geekykant