Add a semi-blocking mode

Useful for one connection per thread access
Merge pull request #91 from LinuxJedi/semi-block

Add a semi-blocking mode