FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
420 stars 137 forks source link

Prevent hangup of 50X10_32M cams on event pullpoint create #91

Open sespivak opened 2 years ago

sespivak commented 2 years ago

There is problem with create ONVIFCamera object for chineese cameras 50X10_32M. They hangs up on create of event pullpount.

# onvif-cli --host 192.168.1.10 --port 8899 -u 'admin' -a '' --wsdl /etc/onvif/wsdl/ ONVIF >>> cmd devicemgmt GetHostname False: Unknown error: HTTPConnectionPool(host='192.168.1.10', port=8899): Max retries exceeded with url: /onvif/device_service (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x731fd4f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

This pull request proposes new parameter event_pullpoint with default value True, which don't change default behavior, but allows workaround to prevent hangups of 50X10_32M cameras.