version 1.18, 2002/05/29 20:59:24
|
version 1.19, 2002/05/30 00:12:38
|
|
|
#include "TLS.h" | #include "TLS.h" |
#include "HTTPAcceptor.h" | #include "HTTPAcceptor.h" |
#include "HTTPConnection.h" | #include "HTTPConnection.h" |
|
#include "Tracer.h" |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
|
|
| |
if (socket < 0) | if (socket < 0) |
{ | { |
if (getenv("PEGASUS_TRACE")) |
PEG_TRACE_STRING(TRC_HTTP, Tracer::LEVEL2, |
cerr <<"HTTPAcceptor: accept() failed" << endl; |
"HTTPAcceptor: accept() failed"); |
|
|
return; | return; |
} | } |
| |
// Create a new conection and add it to the connection list: | // Create a new conection and add it to the connection list: |
| |
MP_Socket * mp_socket = new MP_Socket(socket, _sslcontext); | MP_Socket * mp_socket = new MP_Socket(socket, _sslcontext); |
if (mp_socket->accept() < 0) { |
if (mp_socket->accept() < 0) |
if (getenv("PEGASUS_TRACE")) |
{ |
cerr <<"HTTPAcceptor: SSL_accept() failed" << endl; |
PEG_TRACE_STRING(TRC_HTTP, Tracer::LEVEL2, |
|
"HTTPAcceptor: SSL_accept() failed"); |
return; | return; |
} | } |
| |