Fix bug with non-blocking I/O and cookies
3 files changed