Fix problem where write would block (with event machine)
Merge pull request #31 from threez/patch-2

Fix problem where write would block (with eventmachine)