Opened 18 years ago

Closed 18 years ago

#144 closed defect (fixed)

pj_ioqueue_poll() blocks forever because of invalid timeout value (thanks Igor S)

Reported by: bennylp Owned by: bennylp
Priority: major Milestone: release-0.5.10.2
Component: pjsip Version: 0.5.10.1
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

On Linux, when pjsip_endpt_handle_events() is given NULL as the timeout parameter, it will cause pj_ioqueue_poll() to block forever even when there is incoming packet on the socket.

This happens because select() is given a large or probably negative usec value in timeval argument.

Thanks Igor S for spotting the problem.

Change History (1)

comment:1 Changed 18 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r1018.

Note: See TracTickets for help on using tickets.