ajankovic / smpp

Go library for SMPP 3.4
MIT License
24 stars 21 forks source link

Is smpp.Session concurrency safe? #4

Closed shashankmehra closed 4 years ago

shashankmehra commented 4 years ago

The Send() function acquires a mutex lock when called and releases the lock when it is done with the smpp session. So it appears to be concurrency safe. Can you help me confirm that multiple goroutines can call Send() function concurrently without any issues?

Go libraries are assumed to not be concurrency-safe unless the documentation mentions otherwise. It would be helpful if concurrency safety is mentioned somewhere.

ajankovic commented 4 years ago

Yes, session.Send() is safe for concurrent usage. I'll update configuration.