[racket] Help with sockets.

From: Greg Hendershott (greghendershott at gmail.com)
Date: Fri Apr 25 17:35:26 EDT 2014

> Thanks, with sendall it works nicely.
> But when I  try the reverse flow(that is, Racket to Python) making:
> ;...
> (display "Hello" s-out)
> ;or with 'print
> Python doesn't read with
>>>>
>>>> recv(500)
>
> it locks the terminal...

Probably this is also due to buffering.

After:

  (display "Hello" s-out)

you could do:

  (flush-output s-out)

to flush the buffer.

Posted on the users mailing list.