Comments (3)
One pattern that I've used for backoff retries is by creating a time.Timer(0) followed by a for + select loop that on failed attempts reset the timer and continues the loop. This makes it easy to bump the delay (normally use math.E or math.Phi for the multiplier) and to support cancellation since it's blocking in a select call.
from go-smpp.
Hmmm I don't know what would be the ideal sleep time here either. One thing you could do is to have a backoff timer that starts at 100ms and increases up to a limit. However, at some point it might have to bail out if the limit is reached and kept there for N times or something.
from go-smpp.
This is exactly what we did in previous project - set minimal sleep duration (like 10ms) and then increased it by some delta (could also be 10ms) until the error vanished.
After some time we can start decreasing the sleep interval by delimiter again until we get an error, and so on.
This way it stays balanced out all the time.
How to implement this here...need to think about it.
from go-smpp.
Related Issues (20)
- Using tx.Submit in thread HOT 2
- Easier way to manager delivery receipts - missing receipted_message_id and PDU Sequence Management HOT 1
- [QUESTION] - How to register multiple delivery for transceiver
- [BUG] - message encoding not working for long unicode message
- timeout waiting for response - RESOLVED using RespTimeout parameter HOT 5
- Converting the hex in text field of delivery receipt to original UCS2 text submitted
- Use GSM(packed) to encode and then decode, there is an extra '@' character HOT 4
- Concatenated / Multipart
- Multipart Message using UCS2
- server example
- If I use SMPP to send SMS, how should I listen for DLRs callback?
- Set UDH in the sender SMS
- unexpected PDU ID: Deliver SM HOT 1
- smpp server not accepting multiple clients
- Gracefully stop HOT 1
- Implements generic_nack on ESME side
- Not able to set dynamic listening IP and port HOT 1
- How to set sequence while creating submit_SM ? HOT 1
- SUBMIT_SMRESP not received in the callback.
- Check connected client(s) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-smpp.