Ignore:
Timestamp:
Apr 13, 2015 12:28:02 PM (9 years ago)
Author:
nanang
Message:

Re #1842:

  • Updated python test driver run.py to perform stdout polling using a dedicated thread, this will increase the robustness of pattern matcing class "Expect" and remove the possibility of stucked pjsua (due to output buffer full when no stdout read polling is done).
  • Also updated other test driver and scenario accordingly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/pjsua/mod_sipp.py

    r4188 r5067  
    4141 
    4242# SIPp executable path and param 
    43 #SIPP_PATH = '"C:\\Program Files (x86)\\Sipp_3.2\\sipp.exe"' 
     43#SIPP_PATH = '"C:\\devs\\bin\\Sipp_3.2\\sipp.exe"' 
    4444SIPP_PATH = 'sipp' 
    4545SIPP_PORT    = 6000 
     
    225225    # Ideally the poll should be done contiunously until SIPp process is 
    226226    # terminated. 
    227     for ua_idx in range(len(ua)): 
    228         ua[ua_idx].expect(inc_const.STDOUT_REFRESH, raise_on_error = False) 
     227    # Update: now pjsua stdout is polled continuously by a dedicated thread, 
     228    #         so the poll is no longer needed 
     229    #for ua_idx in range(len(ua)): 
     230    #   ua[ua_idx].expect(inc_const.STDOUT_REFRESH, raise_on_error = False) 
    229231 
    230232    return ua_err_st 
Note: See TracChangeset for help on using the changeset viewer.