chrippa / python-librtmp

python-librtmp is a RTMP client library. It uses the implementation provided by librtmp via cffi.
BSD 2-Clause "Simplified" License
154 stars 33 forks source link

100% cpu utilisation when client fails to connect #15

Closed macnibblet closed 9 years ago

macnibblet commented 9 years ago

Every now and then the client fails to connect to the remote server, the timeout is ignored and cpu utilisation peaks to 100%, i have absolutely no idea what could be causing this.

macnibblet commented 9 years ago

80% of the connections works fine, but those that use 100% cpu never log anything to the files

from librtmp.logging import set_log_output, set_log_level, LOG_DEBUG

log_file = open('/opt/application/{}.txt'.format(os.getpid()), 'w')

set_log_level(LOG_DEBUG)
set_log_output(log_file)