Closing the socket after calling the invokeSlot and not in QHttpServer
after process, because the invocation can be deferred if more data
needs to be read from the socket, so closing the socket after calling
invokeSlot guarantees that the socket is close when the slot finishes.
Closing the socket after calling the invokeSlot and not in QHttpServer after process, because the invocation can be deferred if more data needs to be read from the socket, so closing the socket after calling invokeSlot guarantees that the socket is close when the slot finishes.