4

I started using NanoHTTPD for a project. Indeed it is very good in its simplicity. Unfortunately it turned out that I need to handle simultaneous connections, for example I have a very long response and in the meanwhile the server shall not be blocked.

What do you recommend? I need it to be simple and feature rich as Nano.

Stephan
  • 41,764
  • 65
  • 238
  • 329
gotch4
  • 13,093
  • 29
  • 107
  • 170

1 Answers1

7

NanoHttpd processes incoming requests with a simple 1-request/1-thread multi-threading model, and it's also multi-instance friendly so you can spin up multiple instance of the server to handle connections on different ports if you need to.

Paul Hawke
  • 1,141
  • 10
  • 12
  • 1
    There's an issue with rapidly sent requests: https://github.com/NanoHttpd/nanohttpd/issues/356 – Steven Feb 13 '20 at 04:42