--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Ok, it's called createHttpServer, so I assume people will think that is conforms to HTTP, which it doesn't quite if it is not handling keep-alive,
this may not be a big issue though.
I wonder how it is possible to handle the socket connections, since the RequestHandler is based on the individual request and not on the connection.
On Friday, February 21, 2014 4:23:50 PM UTC+1, Tim Fox wrote:Vert.x is a toolkit for creating network aware applications, not a fully fledged web server like Apache, it doesn't automatically close anything for you. If you want to close Keep-Alive connections after a timeout, that's something you'd have to code yourself.
Turns out I should really read the rfc before quoting it, if the server chooses to keep the connection open, thats probably ok, though it may not what programmers expect.
I think the Connection Header is mandatory or at least a "should" if it doesn't do connection-close and if it is send if can stick to what the header announces. Currently vert.x doesn't send a Connection header and also doesn't honour it if the client sends one. If this is not in the scope of vert.x it might be handled by a framework like yoke (haven't tried that at all yet).
The problem with implementing the timeout on the request
赵普明 said he was crashing and I assumed the connections remaining open for days for Alexander were causing similar issues. I haven't experienced any crashes myself yet, but I'm restarting my server very regularly at the moment. Surely if the connections are never closed, eventually the server must crash ?