Ignore:
Timestamp:
Nov 7, 2018 4:34:01 AM (5 years ago)
Author:
ming
Message:

Fixed #2160: stuck issue in ioqueue when detaching UDP media transport

  • Fixed transport_udp so it won't call another read operation when being stopped.
  • Add robustness checks (assertion) in ioqueue recv, recvfrom, and accept to prevent the same op key being used twice.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c

    r5820 r5907  
    466466    PJ_UNUSED_ARG(op_key); 
    467467 
     468    if (-bytes_read == PJ_ECANCELLED) return; 
     469 
    468470    udp = (struct transport_udp*) pj_ioqueue_get_user_data(key); 
    469471 
     
    585587 
    586588    PJ_UNUSED_ARG(op_key); 
     589 
     590    if (-bytes_read == PJ_ECANCELLED) return; 
    587591 
    588592    udp = (struct transport_udp*) pj_ioqueue_get_user_data(key); 
Note: See TracChangeset for help on using the changeset viewer.