Ignore:
Timestamp:
Jul 18, 2016 11:02:02 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1928): Fixed possible stuck issue in pjnath-test caused by blocking recvfrom() upon concurrent socket events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath-test/concur_test.c

    r5339 r5388  
    264264    pj_assert(status == PJ_SUCCESS); 
    265265 
     266    /* Set socket to nonblocking to avoid stuck in recv/recvfrom() on concurrent events */ 
     267    app_set_sock_nb(test_sess.server_sock); 
     268 
    266269    addr_len = sizeof(bind_addr); 
    267270    status = pj_sock_getsockname(test_sess.server_sock, &bind_addr, &addr_len); 
Note: See TracChangeset for help on using the changeset viewer.