NanoHttpd / nanohttpd

Tiny, easily embeddable HTTP server in Java.
http://nanohttpd.org
BSD 3-Clause "New" or "Revised" License
6.95k stars 1.7k forks source link

Update HTTPSession.java #431

Closed cowenberg closed 7 years ago

cowenberg commented 7 years ago

Correcting problems regarding issue https://github.com/NanoHttpd/nanohttpd/issues/356

grragesh commented 6 years ago

This might break during keep alive. Because HTTPSession constructor is called only once, but execute() is called many times.

LordFokas commented 6 years ago

Well spotted @grragesh Indeed, it cannot be done like this. v3.0.0 will add better ways to handle the protocol but it's still a mess :(

grragesh commented 6 years ago

Thank you @LordFokas