In order to easily change connection strategies I factored the socket out to a separate connection pool object, for now with only a single connection which is opened and closed again for every request. I had troubles connecting to a (dockered) local spamassassin instance using the original implementation - the service kept hanging after a first successful classification.
The fixes for the message-less skip and ping commands are in a separate commit.
In order to easily change connection strategies I factored the socket out to a separate connection pool object, for now with only a single connection which is opened and closed again for every request. I had troubles connecting to a (dockered) local spamassassin instance using the original implementation - the service kept hanging after a first successful classification.
The fixes for the message-less skip and ping commands are in a separate commit.