[plt-scheme] How to close a connection gracefully when using a blocking read?

From: Cyprien Nicolas (c.nicolas at gmail.com)
Date: Fri Jul 20 13:46:38 EDT 2007

Another way, is to read on socket only if there are char available for
reading, you can use char-ready? to test such a thing, if it returns
#f, so sleep for around 100ms and loop.

Cyprien Nicolas

Posted on the users mailing list.