-- i don't really like the way that i fixed the memory leak in connio, however i wanted to get this out to users asap for testing. this fixed a major memory leak for me when tls is used

-- there were a couple of remaining memory leaks in smtpc that have been fixed and i've changed the threadpool size from 5-20 down to 1.  The system still seems to deliver mail rapidly and the huge memory usage does not occur any longer.
This commit is contained in:
pfelt
2009-01-20 05:13:08 +00:00
parent 61182fdcf5
commit 54e2e82bf4
4 changed files with 65 additions and 23 deletions
+7
View File
@@ -156,6 +156,12 @@ typedef struct {
unsigned long useCount;
} TraceDestination;
/* this struct is used to pass the new context and the credentials */
typedef struct _ssl_context_and_credentials {
gnutls_session_t context;
gnutls_certificate_credentials_t credentials;
} SSL_Context_and_Credentials;
typedef struct _Connection {
IPSOCKET socket;
BOOL bSelfManage;
@@ -164,6 +170,7 @@ typedef struct _Connection {
BOOL enable;
gnutls_session_t context;
gnutls_certificate_credentials_t credentials;
} ssl;
struct sockaddr_in socketAddress;