[racket] Issue reading bytes from TCP port

2014-09-03 Thread Gilbert Martinez
I'm having issues reading the response from a TCP server. Specifically, any attempt to read the input port does not terminate. I've used port-bytes, read-byte, and read-line. In all cases the effect is the same. I thought that if there were no bytes available on an input port that the read

Re: [racket] Issue reading bytes from TCP port

2014-09-03 Thread Matthias Felleisen
Have you tried closing the ports? -- Matthias On Sep 3, 2014, at 6:01 PM, Gilbert Martinez wrote: I'm having issues reading the response from a TCP server. Specifically, any attempt to read the input port does not terminate. I've used port-bytes, read-byte, and read-line. In all cases

Re: [racket] Issue reading bytes from TCP port

2014-09-03 Thread Neil Van Dyke
Gilbert Martinez wrote at 09/03/2014 12:01 PM: I run the code above and execute the following in the interactions pane: Welcome to DrRacket, version 6.1.0.5--2014-08-25(32ae3f8/a) [3m]. Language: racket [custom]. 12 (for ((byte (in-bytes (port-bytes c-in (printf ~x

Re: [racket] Issue reading bytes from TCP port

2014-09-03 Thread David Vanderson
On 09/03/2014 12:01 PM, Gilbert Martinez wrote: I'm having issues reading the response from a TCP server. Specifically, any attempt to read the input port does not terminate. I've used port-bytes, read-byte, and read-line. In all cases the effect is the same. I thought that if there were