shuckc / pialarm

Interface with (and impersonate) Texecom Alarm panels over UDL protocol in python
17 stars 4 forks source link

udl_server not starting? #4

Closed RoganDawes closed 1 year ago

RoganDawes commented 2 years ago

I've moved from my Linux laptop to a Mac, and now I find that udl_server is not starting. The console runs, but no listening port is opened, and no output from the udl_server routine appears.

Seems like the problem is the "*" for addresses to bind to, it seems to take a long time to return in asyncio.start_server. (I actually never waited long enough). It works fine with "localhost".

shuckc commented 1 year ago

I think this is one of the things asyncio doesn't fiux cross-platform out of the box. I've got mac's here for work, I will see if it's easy to patch.

shuckc commented 1 year ago

I wasn't able to reproduce this, it started up OK on my mac pretty much instantly.