I can confirm that eof-evt promptly delivers the expected information
about the dropped TCP connection.
Can an application promptly find out about dropped connections from any
available HTTP library for racket?
Jul 2, 2022, 9:23:51 AM (2 days ago)
to Racket Users
Ah, sorry, try `eof-evt` instead of `port-closed-evt`. When I swap the
one for the other, your program gives the output you expected. Perhaps
port closing is something for the Racket program to do, and is
separate from the signalling from the remote peer. You'll get an
`eof-object?` value from read routines when the connection closes.
On 7/1/22 5:40 PM, George Neuner wrote:
Note that most network problems result in an exception ... which your
code is not catching and which you might have missed seeing in the
output. You need to catch *exn:fail:network* and examine the *errno*
field to figure out what happened. *
errno* is a cons: *( integer . symbol )* of the error code and a
symbol identifying the platform for which the error has meaning. The
codes are (somewhat) platform dependent so you will need other
references to decode them.
For more, see:
Hope this helps,
You received this message because you are subscribed to the Google Groups "Racket
To unsubscribe from this group and stop receiving emails from it, send an email
To view this discussion on the web visit