[asterisk-dev] [Code Review] Split up SIP UDP receiving and proceeding

sst at sil.at sst at sil.at
Sat Oct 9 16:31:06 CDT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/970/
-----------------------------------------------------------

Review request for Asterisk Developers.


Summary
-------

i need help cause i got a little stuck about this.
with this patch the receiving and proceeding of sip packages over udp is split up and also in do_monitor the order how the ast_io_wait function is called.
my idea is, if a slow handling in handle_request happens it would not block further incoming packets and scheduled events.

my problem is that the thread i have created which waits for requests to proceed creates a cpu load of 100% and i dont know why.
i have tried using ast_cond_wait on this but i cant get this run, cause i cant hit the right locking order. :(

have i missed something essential here or why does this thread needs that much cpu time?

this patch is against 1.6.2 branch cause i need it for 1.6.2. if this works as i hope i moved it against trunk.


Diffs
-----

  branches/1.6.2/channels/chan_sip.c 291037 

Diff: https://reviewboard.asterisk.org/r/970/diff


Testing
-------


Thanks,

schmidts




More information about the asterisk-dev mailing list