You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the sample programs "crystal tcp_server.cr" and then "crystal tcp_client.cr" The server receives the first message from the client, but the client hangs when attempting to read the response from the server. I've modified the tcp_server.cr so that the programs operate as what I believe should be expected, however there probably is a better way to do it than I have as I've just begun learning Crystal and have only limited Ruby experience. Here is the modified file. I am using Crystal 0.22 with Ubuntu 16.04.2 LTS.
The text was updated successfully, but these errors were encountered:
@wjmacfarland thanks for reporting, I fixed by using IO#puts so the newline character is added and the tcp_client will read until it when doing the IO#gets.
When I run the sample programs "crystal tcp_server.cr" and then "crystal tcp_client.cr" The server receives the first message from the client, but the client hangs when attempting to read the response from the server. I've modified the tcp_server.cr so that the programs operate as what I believe should be expected, however there probably is a better way to do it than I have as I've just begun learning Crystal and have only limited Ruby experience. Here is the modified file. I am using Crystal 0.22 with Ubuntu 16.04.2 LTS.
The text was updated successfully, but these errors were encountered: