You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main problem is that the created counter and the current clients array isn't in sync. On the makeOne() call the counter is incremented before the connection is ready, and only decremented when it has an error. An example would be:
Counter increased, created=1
Tries to create connection
Tries to send email and times out because it couldn't get a client.
Calls close() and created > 0 so enters loop and tries to read clients and locks.
The smtp connection times out and the counter is decreased, created=0
Stuck forever reading clients channel.
The text was updated successfully, but these errors were encountered:
Can reproduce consistently with this:
The main problem is that the
created
counter and the currentclients
array isn't in sync. On themakeOne()
call the counter is incremented before the connection is ready, and only decremented when it has an error. An example would be:close()
and created > 0 so enters loop and tries to readclients
and locks.clients
channel.The text was updated successfully, but these errors were encountered: