baudehlo/Haraka — pull request #174 by smfreegard (2012-03-30 15:13:39+00:00)
Title: Bug fixes

- TLS plugin: don't regenerate UUID or reset the transaction. The RFC only requires we forget the EHLO argument sent and require the host to sent it again after TLS negotiation. Regenerating the UUID here cases the session to be untraceable by UUID in the logs.

- Core: add missing on close handler to socket. This caused disconnect hooks not to run on connections where the host dropped the connection instead of doing a half-close. Implemented in such a way that you can tell if the host either a) sent QUIT, b) half-closed, c) dropped the connection or d) hit a socket error.

- Core: run hook_queue_ok *before* sending OK response back to the client.