Closing a TCP stream (behavior difference from NodeJS?)

I think the issue here is that readline never stops blocking because you never send a new line. Everything seems to work as expected with client.write('hello\n');.

2 Likes