-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to detect dropped TCP/SMPP connection #31
Comments
Hello @qosimmax , please kindly take a look at following test/sample code: https://github.com/linxGnu/gosmpp/blob/master/transceiver_test.go#L53-L73
|
Yes i am using callback handler OnSubmitError , but this handler not working when i turned off internet. |
@qosimmax Oh it's weird, let me take a look later and tell you asap 🤔 |
@qosimmax SMPP Client: go run main.go SMSC (at https://github.com/linxGnu/gosmpp/tree/master/example/smsc): # compile and run smsc
sh run.sh Sometime turn on/off SMSC, I saw following error raised from smpp client:
In short:
Could you please check it again, maybe using RebindingError callback as the example |
@linxGnu you run SMSC in the localhost. |
@qosimmax I could reproduce your concern and provide an update. Please kindly check the fix again with latest rc release. tl;dr: it's go problem of detecting conn broken without specifying read/write deadline. Thank you very much for using gosmpp and tell us your concern/issue. |
@qosimmax Actually, we can't tell when So, I think I would like to give the choice to user. User should try with their own production environment |
I will close this issue. Thank you very much for your concern @qosimmax |
Hi @linxGnu
When sending sms periodically (every 10 seconds) , then i turned off internet connection(wi-fi).
There is no error when send sms. How detect it?
The text was updated successfully, but these errors were encountered: