Changeset 5000 for pjproject/trunk
- Timestamp:
- Mar 19, 2015 5:07:01 AM (10 years ago)
- Location:
- pjproject/trunk/pjsip/src/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r4862 r5000 1096 1096 PJ_ASSERT_RETURN(sock != PJ_INVALID_SOCKET, PJ_TRUE); 1097 1097 1098 if (!listener->is_registered) 1099 return PJ_FALSE; 1100 1098 1101 PJ_LOG(4,(listener->factory.obj_name, 1099 1102 "TCP listener %.*s:%d: got incoming TCP connection " … … 1134 1137 tcp_destroy(&tcp->base, status); 1135 1138 } else { 1139 if (tcp->base.is_shutdown || tcp->base.is_destroying) { 1140 return PJ_TRUE; 1141 } 1136 1142 /* Start keep-alive timer */ 1137 1143 if (PJSIP_TCP_KEEP_ALIVE_INTERVAL) { … … 1143 1149 pj_gettimeofday(&tcp->last_activity); 1144 1150 } 1145 1146 1151 /* Notify application of transport state accepted */ 1147 1152 state_cb = pjsip_tpmgr_get_state_cb(tcp->base.tpmgr); 1148 1153 if (state_cb) { 1149 1154 pjsip_transport_state_info state_info; 1150 1155 1151 1156 pj_bzero(&state_info, sizeof(state_info)); 1152 1157 (*state_cb)(&tcp->base, PJSIP_TP_STATE_CONNECTED, &state_info); … … 1423 1428 tcp->has_pending_connect = PJ_FALSE; 1424 1429 1430 if (tcp->base.is_shutdown || tcp->base.is_destroying) 1431 return PJ_FALSE; 1432 1425 1433 /* Check connect() status */ 1426 1434 if (status != PJ_SUCCESS) { … … 1483 1491 if (state_cb) { 1484 1492 pjsip_transport_state_info state_info; 1485 1493 1486 1494 pj_bzero(&state_info, sizeof(state_info)); 1487 1495 (*state_cb)(&tcp->base, PJSIP_TP_STATE_CONNECTED, &state_info); -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r4973 r5000 1180 1180 PJ_ASSERT_RETURN(new_ssock, PJ_TRUE); 1181 1181 1182 if (!listener->is_registered) 1183 return PJ_FALSE; 1184 1182 1185 PJ_LOG(4,(listener->factory.obj_name, 1183 1186 "TLS listener %.*s:%d: got incoming TLS connection " … … 1237 1240 pjsip_transport_shutdown(&tls->base); 1238 1241 } 1239 1240 1242 /* Notify transport state to application */ 1241 1243 state_cb = pjsip_tpmgr_get_state_cb(tls->base.tpmgr); … … 1555 1557 1556 1558 tls = (struct tls_transport*) pj_ssl_sock_get_user_data(ssock); 1559 1560 if (tls->base.is_shutdown || tls->base.is_destroying) 1561 return PJ_FALSE; 1557 1562 1558 1563 /* Check connect() status */
Note: See TracChangeset
for help on using the changeset viewer.