Re: [racket-users] Issue about tcp port, server doesn't receive bytes using read-bytes-avail!* and client using write-bytes

2019-01-12 Thread Jay McCarthy
You need to flush-output On Sat, Jan 12, 2019 at 10:55 AM Zhonghua Zhu wrote: > I am writing a tcp server program. > Server uses non-blocking reading and client uses write-bytes, then server > never read any bytes and write-bytes returns the right value. > But when I change client's write-bytes

[racket-users] Issue about tcp port, server doesn't receive bytes using read-bytes-avail!* and client using write-bytes

2019-01-12 Thread Zhonghua Zhu
I am writing a tcp server program. Server uses non-blocking reading and client uses write-bytes, then server never read any bytes and write-bytes returns the right value. But when I change client's write-bytes to write-bytes-avail, server receives bytes immediately. I don't know why this happens