Changeset 5975


Ignore:
Timestamp:
May 2, 2019 10:18:26 AM (6 years ago)
Author:
riza
Message:

Close #2193: Buffered read data on SSL socket might not immediately get read after handshake is complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_imp_common.c

    r5940 r5975  
    14811481    ssock->read_flags = flags; 
    14821482 
     1483    for (i=0; i<ssock->param.async_cnt; ++i) { 
     1484        if (ssock->asock_rbuf[i]) { 
     1485            pj_size_t remainder = 0; 
     1486            asock_on_data_read(ssock->asock, ssock->asock_rbuf[i], 0, 
     1487                               PJ_SUCCESS, &remainder); 
     1488        } 
     1489    } 
     1490 
    14831491    return PJ_SUCCESS; 
    14841492} 
Note: See TracChangeset for help on using the changeset viewer.