ettoreleandrotognoli / python-ami

Python AMI Client
BSD 3-Clause "New" or "Revised" License
107 stars 66 forks source link

default timeout on socket is only 3 seconds. It is too small. #47

Closed radetsky closed 2 years ago

radetsky commented 2 years ago

I spend 8 hours finding why my python script simple_event_notification.py from example did not work. Spoiler: It is disconnected on time out because the test asterisk does not send any event. I firewalled it from remote unneeded activity.

I suggest setting it to a bigger value.

ettoreleandrotognoli commented 2 years ago

Hello, sorry for your 8 hours =/ Are you suggesting changing the default value, or setting a bigger value only on the example?

radetsky commented 2 years ago

I think example value will be enough. Maybe with the comment. It works fine when someone tries to find a password for SIP users :), but when no event in 10-15 minutes, it disconnects without any message. Thank you.