Ignore:
Timestamp:
Jul 22, 2006 12:47:40 PM (15 years ago)
Author:
bennylp
Message:

Fixed bug in tel: URI unescaping code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test-pjsip/tsx_bench.c

    r582 r619  
    3232    pjsip_transaction **tsx; 
    3333    pj_timestamp t1, t2, elapsed; 
     34    pjsip_via_hdr *via; 
    3435    pj_status_t status; 
    3536 
     
    4950    } 
    5051 
     52    via = (pjsip_via_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_VIA, 
     53                                              NULL); 
     54 
    5155    /* Create transaction array */ 
    5256    tsx = pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 
     
    6266        if (status != PJ_SUCCESS) 
    6367            goto on_error; 
     68        /* Reset branch param */ 
     69        via->branch_param.slen = 0; 
    6470    } 
    6571    pj_get_timestamp(&t2); 
     
    184190int tsx_bench(void) 
    185191{ 
    186     enum { WORKING_SET=PJSIP_MAX_TSX_COUNT, REPEAT = 4 }; 
     192    enum { WORKING_SET=10000, REPEAT = 4 }; 
    187193    unsigned i, speed; 
    188194    pj_timestamp usec[REPEAT], min, freq; 
Note: See TracChangeset for help on using the changeset viewer.