You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that is not meant to process such requests, like
GET / HTTP/4.0
but, the problem is that the server desperately fails into segmentation fault.
This is an example connection to the echoserver from examples:
rakula@nevada ~/play/mordor $ /home/rakula/play/mordor/mordor/examples/.libs/echoserver
terminate called without an active exception
Аварийный останов
rakula@nevada ~/play/mordor $
since version is taken from request (if i am getting it right) - it is still "2.0" here, so assertion fails and the program crashes.
probably it should be sane to add something like
m_request.requestLine.ver = Version();
just before calling
respondError(shared_from_this(), HTTP_VERSION_NOT_SUPPORTED, "", true);
from ServerRequest::doRequest()
The text was updated successfully, but these errors were encountered:
I understand that is not meant to process such requests, like
GET / HTTP/4.0
but, the problem is that the server desperately fails into segmentation fault.
This is an example connection to the echoserver from examples:
data send here:
As i assume the invalid version should be handled in mordor/http/server.cpp:1249
an this particular piece of code works fine. it calls respondError, which calls request->finish(), which calls commit() and there we are:
since version is taken from request (if i am getting it right) - it is still "2.0" here, so assertion fails and the program crashes.
probably it should be sane to add something like
m_request.requestLine.ver = Version();
just before calling
respondError(shared_from_this(), HTTP_VERSION_NOT_SUPPORTED, "", true);
from ServerRequest::doRequest()
The text was updated successfully, but these errors were encountered: