I’m experiencing a problem when trying to open a TCP channel.
For example, let’s consider the following line:
Let’s suppose the server is shut down and the wip.tcp_client() function fails throwing a “REFUSED” error.
In this case status will be ‘false’ and ‘ch’ will contain the error.
This is the expected behavior, but the channel somehow remains open - it shows up in ‘proc.channels’ as ‘busy’.
There is no way to close this channel because there is no handle to it - the wip.tcp_client() function in this case returns nil.
The only way for me to close the channels is to have a sepparate thread that parses proc.channels and closes all the busy ones,
but I think that’s a bit too complicated don’t you agree ? There is a limit of how many channels can be opened at the same time,
and reaching that limit is just a matter of minutes.
Am I missing something here ?