Closed jaydoane closed 3 years ago
@cmullaparthi do you have any interest including this commit in master?
FWIW, it's been included in recent CouchDB releases, and is also running in production at IBM/Cloudant for a couple years now, with no issues.
@jaydoane thanks for the nudge.
It's possible for the connection process associated with a pid in the ibrowse_lb ets table to die, yet remain in the table, in which case subsequent requests to the corresponding
{Host, Port}
will result in an error like the following:This checks whether the pid about to be returned from the table is alive, and if not, the entry is deleted, and a new pid is obtained.