src/server/daemon/httplistener.c

changeset 171
af7e2d80dee6
parent 169
76c96ee18221
child 193
aa8393527b1e
equal deleted inserted replaced
169:76c96ee18221 171:af7e2d80dee6
48 48
49 #include <ucx/map.h> 49 #include <ucx/map.h>
50 50
51 #include "../util/atomic.h" 51 #include "../util/atomic.h"
52 #include "httplistener.h" 52 #include "httplistener.h"
53 #include "netsite.h"
53 54
54 #include "session.h" 55 #include "session.h"
55 #include "configmanager.h" 56 #include "configmanager.h"
56 #include "log.h" 57 #include "log.h"
57 58
420 case SSL_ERROR_SSL: errstr = "SSL_ERROR_SSL"; break; 421 case SSL_ERROR_SSL: errstr = "SSL_ERROR_SSL"; break;
421 } 422 }
422 log_ereport(LOG_VERBOSE, "SSL accept error[%d]: %s", error, errstr); 423 log_ereport(LOG_VERBOSE, "SSL accept error[%d]: %s", error, errstr);
423 free(conn); 424 free(conn);
424 conn = NULL; 425 conn = NULL;
425 close(clientfd); 426 system_close(clientfd);
426 } else { 427 } else {
427 conn->ssl = ssl; 428 conn->ssl = ssl;
428 conn->read = connection_ssl_read; 429 conn->read = connection_ssl_read;
429 conn->write = connection_ssl_write; 430 conn->write = connection_ssl_write;
430 conn->close = connection_ssl_close; 431 conn->close = connection_ssl_close;

mercurial