ethereum / lahja

Lahja is a generic multi process event bus implementation written in Python 3.6+ to enable lightweight inter-process communication, based on non-blocking asyncio
MIT License
394 stars 19 forks source link

A couple fixes to TrioEndpoint #170

Closed gsalgado closed 4 years ago

gsalgado commented 4 years ago

What was wrong?

In trinity with the new (in progress, trio-based) peer discovery protocol, sometimes other endpoints were trying to connect too soon, before the IPC socket file was bound, causing an error

Also, multiple other endpoints will usually try to connect simultaneously, causing an error as TrioEndpoint's IPC socket was hard-coded to accept only one pending connection.

How was it fixed?

To-Do