Changes between Initial Version and Version 1 of Ticket #512


Ignore:
Timestamp:
Mar 13, 2008 9:55:33 PM (11 years ago)
Author:
bennylp
Comment:

Fixed in r1868

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #512

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #512 – Description

    initial v1  
     1The pjsip endpoint will invoke {{{pj_thread_sleep()}}} if {{{pj_ioqueue_poll()}}} returns error: 
     2 
     3{{{ 
     4  c = pj_ioqueue_poll( endpt->ioqueue, &timeout); 
     5  if (c < 0) { 
     6    pj_thread_sleep(PJ_TIME_VAL_MSEC(timeout)); 
     7}}} 
     8 
     9Unfortunately, the select ioqueue may incorrectly return error when select actually returns timeout: 
     10 
     11{{{ 
     12 count = pj_sock_select(ioqueue->nfds+1, &rfdset, &wfdset, &xfdset, timeout); 
     13 if (count <= 0) 
     14   return -pj_get_netos_error(); 
     15}}} 
     16 
     17Because of this, application may sleep for longer than what's required. 
    118 
    219Please see http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-March/002054.html for the details.