linxGnu / gosmpp

Smpp (3.4) Client Library for Go
Apache License 2.0
152 stars 59 forks source link

fix issue #151: bind not restarting when user uses closeBind #152

Open laduchesneau opened 1 week ago

laduchesneau commented 1 week ago

When a pdu expires and the user returns true on closeBind, it should now call the close function with the proper state. This will allow OnClosed to be called and the bind to be restarted.

This also fixes the the transceiver context that is never closed.

laduchesneau commented 1 week ago

closing it for now, the error message doesnt match the close reason. There seems to be a race condition between the unbind start and the tcp disconnect. Ill reopen when I resolve this issue.