brainlag / JavaNSQClient

Fast Java client for NSQ
MIT License
90 stars 57 forks source link

Update connection logic to prevent errors #39

Closed XerxesDGreat closed 7 years ago

XerxesDGreat commented 7 years ago

Use ImmutableSet and Iterators to prevent ConcurrentModificationExceptions. Introduce a ConnectErrorHandler so users of this library can handle any errors encountered during connection instead of having the errors just get swallowed in a different thread which causes the connection timer to fail and eventually lose servers during autoscaling.

XerxesDGreat commented 7 years ago

sorry, didn't mean to post this here yet.