Re: [racket-users] Re: Detecting broken inbound TCP connections

2022-07-01 Thread George Neuner
Hi Jeff, 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

[racket-users] Re: Detecting broken inbound TCP connections

2022-07-01 Thread Jeff Henrikson
Hi Tony, Thanks for offering your interpretation of the racket reference manual.  Below is my attempt to test whether or not the input port does indeed become closed when the TCP connection is broken. The broken TCP connection is provided by combining curl with GNU coreutils timeout. I

Re: [racket-users] commenting / uncommenting in DrRacket IDE

2022-07-01 Thread Laurent
On Fri, Jul 1, 2022 at 9:25 AM Hrvoje Blazevic wrote: > Thanks for replying. However, I was not asking for instructions on how to > use DrRacket. Have been using it since the days when HTDP1 was first > printed, and when it was called DrScheme. > But to answer your question in Racket 8.5 and

[racket-users] Re: Detecting broken inbound TCP connections

2022-07-01 Thread Tony Garnock-Jones
Hi Jeff, On Thursday, June 30, 2022 at 8:34:44 PM UTC+2 Jeff Henrikson wrote: > How do I accept an inbound TCP connection so that once I am processing > it, if the connection is broken by the client or network, my program > promptly finds out? > You can use `tcp-listen` and `tcp-accept` [0]

Re: [racket-users] commenting / uncommenting in DrRacket IDE

2022-07-01 Thread Hrvoje Blazevic
Thanks for replying. However, I was not asking for instructions on how to use DrRacket. Have been using it since the days when HTDP1 was first printed, and when it was called DrScheme. But to answer your question in Racket 8.5 and Fedora 36 with Gome WM uncommenting does not work, not with ';' and

Re: [racket-users] commenting / uncommenting in DrRacket IDE

2022-07-01 Thread Laurent
After commenting out with a box, place the cursor inside the box then click on the "Racket" menu then on the "Uncomment" item. Now the box should be uncommented without losing anything. Does this not work for you? HTH, Laurent On Fri, Jul 1, 2022 at 5:39 AM Hrvoje Blazevic wrote: > Hi, I have