Changeset 3018 for pjproject/trunk


Ignore:
Timestamp:
Nov 11, 2009 7:14:28 AM (15 years ago)
Author:
nanang
Message:

Ticket #957: Updated SSL sock performance test to avoid false connected state problem caused by server listen backlog excess (problem examined on mac platform).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ssl_sock.c

    r2990 r3018  
    10491049            continue; 
    10501050        } 
     1051 
     1052        /* Give chance to server to accept this client */ 
     1053        { 
     1054            unsigned n = 5; 
     1055 
     1056#ifdef PJ_SYMBIAN 
     1057            while(n && pj_symbianos_poll(-1, 1000)) 
     1058                n--; 
     1059#else 
     1060            pj_time_val delay = {0, 100}; 
     1061            while(n && pj_ioqueue_poll(ioqueue, &delay) > 0) 
     1062                n--; 
     1063#endif 
     1064        } 
    10511065    } 
    10521066 
Note: See TracChangeset for help on using the changeset viewer.