Changeset 735 for pjproject/trunk
- Timestamp:
- Sep 22, 2006 6:42:09 PM (18 years ago)
- Location:
- pjproject/trunk/pjsip/src/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r608 r735 909 909 } 910 910 911 /* Check if we still have valid packet. 912 * Sometimes endpoints just send blank (CRLF) packets just to keep 913 * NAT bindings open. 914 */ 915 if (pj_scan_is_eof(scanner)) 916 return NULL; 917 911 918 /* Parse request or status line */ 912 919 if (pj_scan_stricmp_alnum( scanner, PJSIP_VERSION, 7) == 0) { -
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r720 r735 1084 1084 int len; 1085 1085 len = pj_ansi_snprintf(tmp.ptr+tmp.slen, sizeof(buf)-tmp.slen, 1086 ": %s exception when parsing %.*s"1086 ": %s exception when parsing '%.*s' " 1087 1087 "header on line %d col %d", 1088 1088 pj_exception_id_name(err->except_code), … … 1095 1095 } 1096 1096 1097 PJ_LOG(1, (THIS_FILE, 1098 "Error processing %d bytes packet from %s:%d %.*s:\n" 1097 /* Only print error message if there's error. 1098 * Sometimes we receive blank packets (packets with only CRLF) 1099 * which were sent to keep NAT bindings. 1100 */ 1101 if (tmp.slen) { 1102 PJ_LOG(1, (THIS_FILE, 1103 "Error processing %d bytes packet from %s %s:%d %.*s:\n" 1099 1104 "%.*s\n" 1100 1105 "-- end of packet.", 1101 1106 msg_fragment_size, 1107 rdata->tp_info.transport->type_name, 1102 1108 rdata->pkt_info.src_name, 1103 1109 rdata->pkt_info.src_port, … … 1105 1111 (int)msg_fragment_size, 1106 1112 rdata->msg_info.msg_buf)); 1113 } 1107 1114 1108 1115 goto finish_process_fragment;
Note: See TracChangeset
for help on using the changeset viewer.