gopcua / opcua

Native Go OPC-UA library
MIT License
864 stars 263 forks source link

Send error if can't close the connection #404

Open kowiste opened 3 years ago

kowiste commented 3 years ago

I have a connection to a OPC server in a PLC (Mitsubishi), if there is some problem reading I try to close the connection and reconnect again, but if there is not connection the OPC Server maintain the channel open and after 8 tries, give and error (too much connection). I was investigating and find that client.Close() suppose to return an error but return always nil, how can I know the close it was done so I can reconnect again?

magiconair commented 3 years ago

If you still have that problem I would be interested in a tcpdump of that session. This sounds odd.