codefriar / RubySpamAssassin

Ruby Spam Assassin; Kills Spam Dead. Perhaps before it's sent! (Gasp!)
MIT License
29 stars 17 forks source link

New connection per request and small fixes for commands without message #7

Closed robvandenbogaard closed 8 years ago

robvandenbogaard commented 8 years ago

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.