Merge pull request #12 from hillu/io-ssl-eagain-fix

Proper fix for issue #4
Revert "fixes #4"

This reverts commit fed6f7d7df8619df0754e8883cfad2ac15703a38.