Your while loop will not terminate until the server either closes the connection or uses shutdown upon it.
Until the server takes one of these two actions, the client will block on the readline waiting for another transmission. If no transmission is forthcoming and the server fails to terminate the connection, the client will block forever.
On the basis of what you've posted, the problem would appear to lie at the server end of the connection.
In reply to Re: Why won't this socket client terminate?
by BrowserUk
in thread Why won't this socket client terminate?
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |