Date: Mon, 27 Apr 2009 15:21:03 -0700
   From: [email protected] (Matt Birkholz)

   open-tcp-server-socket returns a port.  You never close it.  You only
   pass it to read-line, once.

   The manual says close-tcp-server-socket does not affect existing
   connections.  They will not be closed until Scheme exits (unless the
   client closes its end).

The last sentence is not quite correct.  Scheme will periodically
close unreferenced sockets after garbage collection.  Also, in the
version in CVS, some cases of file descriptor exhaustion will trigger
a garbage collection to close unreferenced sockets.

Nevertheless, as you suggest, it is good practice to close the socket
explicitly.


_______________________________________________
MIT-Scheme-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/mit-scheme-users

Reply via email to