mickorz / rtmplite

Automatically exported from code.google.com/p/rtmplite
1 stars 0 forks source link

exeception error in incoming calls with gevent version #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

below the error trace when the ua receives a call.
it's not fatal but sometimes no audio

receive RTP exception (<class 'socket.error'>, error(9, 'Bad f                  

            ile descriptor'), <traceback object at 0x2374878>)
Traceback (most recent call last):
  File "/home/adobe/rtmplite/siprtmp.py", line 642, in receiveRTP
    fd = sock.fileno()
  File "<string>", line 1, in fileno
  File "/usr/lib64/python2.5/site-packages/gevent-0.14.0dev-py2.5-linux-x86_64.e                                                                                                              gg/gevent/socket.py", line 266, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: (9, 'Bad file descriptor')
receive RTCP exception (<class 'socket.error'>, error(9, 'Bad file 
descriptor'),                                                                   
                                            <traceback object at 0x23747e8>)
Exception greenlet.GreenletExit: GreenletExit() in <bound method 
Network.__del__                                                                 
                                              of <__main__.Network object at 
0x2375110>> ignored
receive RTP exception (<class 'socket.error'>, error(9, 'Bad file descriptor'), 

                              <traceback object at 0x24253f8>)
Traceback (most recent call last):
  File "/home/adobe/rtmplite/siprtmp.py", line 642, in receiveRTP
    fd = sock.fileno()
  File "<string>", line 1, in fileno
  File "/usr/lib64/python2.5/site-packages/gevent-0.14.0dev-py2.5-linux-x86_64.e                                                                                                              gg/gevent/socket.py", line 266, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: (9, 'Bad file descriptor')
receive RTCP exception (<class 'socket.error'>, error(9, 'Bad file 
descriptor'),                                                                   
                                            <traceback object at 0x24253f8>)
Exception greenlet.GreenletExit: GreenletExit() in <bound method 
Network.__del__                                                                 
                                              of <__main__.Network object at 
0x2422290>> ignored

I tried to figure it out without success.
seems that maybe the sock.fileno() is not ready at the time to send packet?

thanks

Original issue reported on code.google.com by pratn...@gmail.com on 28 May 2011 at 7:52

GoogleCodeExporter commented 9 years ago
this exception seems to be when no audio is coming from the flash client, for 
example
if the mic is not plugged. don't know how to write a condition that check if 
sock.fileno() result is an integer so the rest of code is executed

Regards

Original comment by pratn...@gmail.com on 28 May 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Any luck with this one? I will mark it as invalid. The exception seems to 
indicate that the socket was probably closed in a separate task, which could be 
due to invalid or mismatch in SDP. If you can send me the full trace, that will 
help.

Original comment by kundan10 on 20 Sep 2011 at 5:45