go-routeros / routeros

Go library for accessing Mikrotik devices using the RouterOS API
MIT License
196 stars 51 forks source link

Add DialContext #3

Closed ghost closed 5 years ago

ghost commented 5 years ago

Add DialContext function to allow forced cancellations. This is useful when the r/w buffer blocks, even when the connection had succeeded. Calling the context cancel function will close the connections and its buffer, which will cause the blocked reading/writing to return an error.

qdm12 commented 1 year ago

Why was this closed? 🤔