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 the TCPSocket is closed from the server side, getc always returns nil, so this code is an infinite loop. I am not sure what the intent of this code is, but it is definitely a bug and I am reporting it anyway.
Note that reading one letter at a time by using getc is not a good idea in terms of efficiency.
The text was updated successfully, but these errors were encountered:
websocket-client-simple/lib/websocket-client-simple/client.rb
Lines 46 to 51 in 17eadab
When the TCPSocket is closed from the server side,
getc
always returns nil, so this code is an infinite loop. I am not sure what the intent of this code is, but it is definitely a bug and I am reporting it anyway.Note that reading one letter at a time by using
getc
is not a good idea in terms of efficiency.The text was updated successfully, but these errors were encountered: