Skip to content

Conversation

zakalibit
Copy link
Contributor

Main idea is to simplify pendingConnectionList handling by accessing it only with in libevent handlers, this allowed lock and atomic removal around it.

As well I changed createConnection so it handles both usecases, synchronous and deferred connects.

…sn as well

- remove locking and atomics around pendingConnectionList to reduce cpu serialization and simplify code
- initiateConnection should not create defered connections as it might create duplicates in pendingConnectionList
- restore ClientTest.cpp indentation
@zakalibit
Copy link
Contributor Author

forgot to mention about initiateConenction(), it could create duplicate pending connections in the list, so I removed calls to create deferred connection calls on errors. this should be handled by initiateConenction() callers

- fix autoReconnect only for enabled connections on connection lost event
- fix unitests, cleanup listener pointer at the end of everu testunit, as it points to a local variable
- few cleanups
@zakalibit
Copy link
Contributor Author

I found and fixed few other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant