Changeset 3117 for pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
- Timestamp:
- Mar 6, 2010 2:04:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r3106 r3117 1166 1166 switch (timer_id) { 1167 1167 case TIMER_HANDSHAKE_TIMEOUT: 1168 PJ_LOG(1,(ssock->pool->obj_name, "SSL handshaketimeout after %d.%ds",1168 PJ_LOG(1,(ssock->pool->obj_name, "SSL timeout after %d.%ds", 1169 1169 ssock->param.timeout.sec, ssock->param.timeout.msec)); 1170 1170 … … 1607 1607 ssock->write_state.start = ssock->write_state.buf; 1608 1608 ssock->write_state.len = 0; 1609 1610 /* Start handshake timer */1611 if (ssock->param.timer_heap && (ssock->param.timeout.sec != 0 ||1612 ssock->param.timeout.msec != 0))1613 {1614 pj_assert(ssock->timer.id == TIMER_NONE);1615 ssock->timer.id = TIMER_HANDSHAKE_TIMEOUT;1616 status = pj_timer_heap_schedule(ssock->param.timer_heap,1617 &ssock->timer,1618 &ssock->param.timeout);1619 if (status != PJ_SUCCESS)1620 ssock->timer.id = TIMER_NONE;1621 }1622 1609 1623 1610 #ifdef SSL_set_tlsext_host_name … … 2291 2278 pj_sockaddr_cp(&ssock->rem_addr, remaddr); 2292 2279 2280 /* Start timer */ 2281 if (ssock->param.timer_heap && (ssock->param.timeout.sec != 0 || 2282 ssock->param.timeout.msec != 0)) 2283 { 2284 pj_assert(ssock->timer.id == TIMER_NONE); 2285 ssock->timer.id = TIMER_HANDSHAKE_TIMEOUT; 2286 status = pj_timer_heap_schedule(ssock->param.timer_heap, 2287 &ssock->timer, 2288 &ssock->param.timeout); 2289 if (status != PJ_SUCCESS) 2290 ssock->timer.id = TIMER_NONE; 2291 } 2292 2293 2293 status = pj_activesock_start_connect(ssock->asock, pool, remaddr, 2294 2294 addr_len);
Note: See TracChangeset
for help on using the changeset viewer.