comparison src/event/ngx_event_quic_transport.c @ 8391:2d5db7faa788 quic

Removed outdated debug.
author Vladimir Homutov <vl@nginx.com>
date Thu, 14 May 2020 18:10:53 +0300
parents eebdda507ec3
children 49a98760afd2
comparison
equal deleted inserted replaced
8390:70dbd7d0e466 8391:2d5db7faa788
115 u_char *p; 115 u_char *p;
116 uint64_t value; 116 uint64_t value;
117 ngx_uint_t len; 117 ngx_uint_t len;
118 118
119 if (pos >= end) { 119 if (pos >= end) {
120 printf("OOPS >=\n");
121 return NULL; 120 return NULL;
122 } 121 }
123 122
124 p = pos; 123 p = pos;
125 len = 1 << ((*p & 0xc0) >> 6); 124 len = 1 << ((*p & 0xc0) >> 6);
126 125
127 value = *p++ & 0x3f; 126 value = *p++ & 0x3f;
128 127
129 if ((size_t)(end - p) < (len - 1)) { 128 if ((size_t)(end - p) < (len - 1)) {
130 printf("LEN TOO BIG: need %ld have %ld\n", len, end - p);
131 return NULL; 129 return NULL;
132 } 130 }
133 131
134 while (--len) { 132 while (--len) {
135 value = (value << 8) + *p++; 133 value = (value << 8) + *p++;