Browse Source

Added error handling for operation would block.

release/0.19
Jessica James 9 years ago
parent
commit
6be5c8578d
  1. 3
      Jupiter/HTTP_Server.cpp
  2. BIN
      Release/Jupiter.lib

3
Jupiter/HTTP_Server.cpp

@ -256,7 +256,6 @@ HTTPSession::HTTPSession(Jupiter::Socket &&in_sock) : sock(std::move(in_sock))
HTTPSession::~HTTPSession() HTTPSession::~HTTPSession()
{ {
HTTPSession::sock.setBlocking(true);
} }
// Server::Data struct // Server::Data struct
@ -864,6 +863,8 @@ int Jupiter::HTTP::Server::think()
else // reject (too large) else // reject (too large)
delete session; delete session;
} }
else if (session->sock.getLastError() == 10035) // store for more processing
Jupiter::HTTP::Server::data_->sessions.add(session);
} }
} }
return 0; return 0;

BIN
Release/Jupiter.lib

Binary file not shown.
Loading…
Cancel
Save