master
1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 * SPDX-License-Identifier: curl
22 *
23 ***************************************************************************/
24#include "unitcheck.h"
26/* DoH + HTTPSRR are required */
27#if !defined(CURL_DISABLE_DOH) && defined(USE_HTTPSRR)
28#include "vdns/doh.h"
29#include "vdns/httpsrr.h"
31static CURLcode t1658_setup(void)
32{
33 /* whatever you want done first */
34 curl_global_init(CURL_GLOBAL_ALL);
35 return CURLE_OK;
36}
38/*
39 * The idea here is that we pass one DNS packet at the time to the decoder. we
40 * then generate a string output with the results and compare if it matches
41 * the expected. One by one.
42 */
44static char rrbuffer[256];
45static void rrresults(struct Curl_https_rrinfo *rr, CURLcode result)
46{
47 char *p = rrbuffer;
48 const char *pend = rrbuffer + sizeof(rrbuffer);
49 curl_msnprintf(rrbuffer, sizeof(rrbuffer), "r:%d|", (int)result);
50 p += strlen(rrbuffer);
52 if(rr) {
53 unsigned int i;
54 curl_msnprintf(p, pend - p, "p:%d|", rr->priority);
55 p += strlen(p);
57 curl_msnprintf(p, pend - p, "%s|", rr->target ? rr->target : "-");
58 p += strlen(p);
60 for(i = 0; i < MAX_HTTPSRR_ALPNS && rr->alpns[i] != ALPN_none; i++) {
61 curl_msnprintf(p, pend - p, "alpn:%x|", rr->alpns[i]);
62 p += strlen(p);
63 }
64 if(rr->no_def_alpn) {
65 curl_msnprintf(p, pend - p, "no-def-alpn|");
66 p += strlen(p);
67 }
68 if(rr->port_set) {
69 curl_msnprintf(p, pend - p, "port:%d|", rr->port);
70 p += strlen(p);
71 }
72 if(rr->ipv4hints) {
73 for(i = 0; i < rr->ipv4hints_len; i += 4) {
74 curl_msnprintf(p, pend - p, "ipv4:%d.%d.%d.%d|",
75 rr->ipv4hints[i],
76 rr->ipv4hints[i + 1],
77 rr->ipv4hints[i + 2],
78 rr->ipv4hints[i + 3]);
79 p += strlen(p);
80 }
81 }
82 if(rr->echconfiglist) {
83 curl_msnprintf(p, pend - p, "ech:");
84 p += strlen(p);
85 for(i = 0; i < rr->echconfiglist_len; i++) {
86 curl_msnprintf(p, pend - p, "%02x", rr->echconfiglist[i]);
87 p += strlen(p);
88 }
89 curl_msnprintf(p, pend - p, "|");
90 p += strlen(p);
91 }
92 if(rr->ipv6hints) {
93 for(i = 0; i < rr->ipv6hints_len; i += 16) {
94 int x;
95 curl_msnprintf(p, pend - p, "ipv6:");
96 p += strlen(p);
97 for(x = 0; x < 16; x += 2) {
98 curl_msnprintf(p, pend - p, "%s%02x%02x",
99 x ? ":" : "",
100 rr->ipv6hints[i + x],
101 rr->ipv6hints[i + x + 1]);
102 p += strlen(p);
103 }
104 curl_msnprintf(p, pend - p, "|");
105 p += strlen(p);
106 }
107 }
108 }
109}
111static CURLcode test_unit1658(const char *arg)
112{
113 UNITTEST_BEGIN(t1658_setup())
115 /* The "SvcParamKeys" specified within the HTTPS RR packet *must* be
116 provided in numerical order. */
118 struct test {
119 const char *name;
120 const unsigned char *dns;
121 size_t len; /* size of the dns packet */
122 const char *expect;
123 };
125 static const struct test t[] = {
126 {
127 "single h2 alpn",
128 (const unsigned char *)"\x00\x00" /* 16-bit prio */
129 "\x04name\x00" /* RNAME */
130 "\x00\x01" /* RR (1 == ALPN) */
131 "\x00\x03" /* data size */
132 "\x02" /* length byte */
133 "h2",
134 15,
135 "r:0|p:0|name.|alpn:10|"
136 },
137 {
138 "single h2 alpn missing last byte",
139 (const unsigned char *)"\x00\x00" /* 16-bit prio */
140 "\x04name\x00" /* RNAME */
141 "\x00\x01" /* RR (1 == ALPN) */
142 "\x00\x03" /* data size */
143 "\x02" /* length byte */
144 "h", /* missing byte */
145 14,
146 "r:8|"
147 },
148 {
149 "two alpns",
150 (const unsigned char *)"\x00\x00" /* 16-bit prio */
151 "\x04name\x04some\x00" /* RNAME */
152 "\x00\x01" /* RR (1 == ALPN) */
153 "\x00\x06" /* data size */
154 "\x02" /* ALPN length byte */
155 "h2"
156 "\x02" /* APLN length byte */
157 "h3",
158 23,
159 "r:0|p:0|name.some.|alpn:10|alpn:20|"
160 },
161 {
162 "wrong syntax alpns",
163 (const unsigned char *)"\x00\x00" /* 16-bit prio */
164 "\x04name\x04some\x00" /* RNAME */
165 "\x00\x01" /* RR (1 == ALPN) */
166 "\x00\x06" /* data size */
167 "\x02" /* ALPN length byte */
168 "h2"
169 "\x03" /* APLN length byte (WRONG) */
170 "h3",
171 23,
172 "r:61|"
173 },
174 {
175 "five alpns (ignore dupes)", /* we only support four */
176 (const unsigned char *)"\x00\x00" /* 16-bit prio */
177 "\x04name\x04some\x00" /* RNAME */
178 "\x00\x01" /* RR (1 == ALPN) */
179 "\x00\x0f" /* data size */
180 "\x02" /* ALPN length byte */
181 "h2"
182 "\x02" /* ALPN length byte */
183 "h2"
184 "\x02" /* ALPN length byte */
185 "h2"
186 "\x02" /* ALPN length byte */
187 "h2"
188 "\x02" /* APLN length byte */
189 "h3",
190 32,
191 "r:0|p:0|name.some.|alpn:10|alpn:20|"
192 },
193 {
194 "rname only",
195 (const unsigned char *)"\x00\x00" /* 16-bit prio */
196 "\x04name\x04some\x00", /* RNAME */
197 13,
198 "r:0|p:0|name.some.|"
199 },
200 {
201 "rname with low ascii byte",
202 (const unsigned char *)"\x00\x00" /* 16-bit prio */
203 "\x04name\x04som\x03\x00", /* RNAME */
204 13,
205 "r:8|"
206 },
207 {
208 "rname with NUL byte",
209 (const unsigned char *)"\x00\x00" /* 16-bit prio */
210 "\x04sa\x00e\x04some\x00", /* RNAME */
211 13,
212 "r:27|"
213 },
214 {
215 "rname only (missing byte)",
216 (const unsigned char *)"\x00\x00" /* 16-bit prio */
217 "\x04name\x05some\x00", /* RNAME */
218 /* it lacks a byte */
219 13,
220 "r:27|"
221 },
222 {
223 "unrecognized alpn",
224 (const unsigned char *)"\x00\x00" /* 16-bit prio */
225 "\x04name\x04some\x00" /* RNAME */
226 "\x00\x01" /* RR (1 == ALPN) */
227 "\x00\x06" /* data size */
228 "\x02" /* ALPN length byte */
229 "h8" /* unrecognized */
230 "\x02" /* APLN length byte */
231 "h1",
232 23,
233 "r:0|p:0|name.some.|alpn:8|"
234 },
235 {
236 "alnt + no-default-alpn",
237 (const unsigned char *)"\x00\x00" /* 16-bit prio */
238 "\x04name\x04some\x00" /* RNAME */
239 "\x00\x01" /* RR (1 == ALPN) */
240 "\x00\x03" /* data size */
241 "\x02" /* ALPN length byte */
242 "h2"
243 "\x00\x02" /* RR (2 == NO DEFAULT ALPN) */
244 "\x00\x00", /* must be zero */
245 24,
246 "r:0|p:0|name.some.|alpn:10|no-def-alpn|"
247 },
248 {
249 "alnt + no-default-alpn with size",
250 (const unsigned char *)"\x00\x00" /* 16-bit prio */
251 "\x04name\x04some\x00" /* RNAME */
252 "\x00\x01" /* RR (1 == ALPN) */
253 "\x00\x03" /* data size */
254 "\x02" /* ALPN length byte */
255 "h2"
256 "\x00\x02" /* RR (2 == NO DEFAULT ALPN) */
257 "\x00\x01" /* must be zero */
258 "\xff",
259 25,
260 "r:43|"
261 },
262 {
263 "alnt + no-default-alpn with size too short package",
264 (const unsigned char *)"\x00\x00" /* 16-bit prio */
265 "\x04name\x04some\x00" /* RNAME */
266 "\x00\x01" /* RR (1 == ALPN) */
267 "\x00\x03" /* data size */
268 "\x02" /* ALPN length byte */
269 "h2"
270 "\x00\x02" /* RR (2 == NO DEFAULT ALPN) */
271 "\x00\x01", /* must be zero */
272 /* missing last byte in the packet */
273 24,
274 "r:8|"
275 },
276 {
277 "rname + blank alpn field",
278 (const unsigned char *)"\x11\x11" /* 16-bit prio */
279 "\x04name\x04some\x00" /* RNAME */
280 "\x00\x01" /* RR (1 == ALPN) */
281 "\x00\x00", /* data size, strictly speaking this is illegal:
282 "one or more alpn-ids" */
283 17,
284 "r:0|p:4369|name.some.|"
285 },
286 {
287 "no rname + blank alpn",
288 (const unsigned char *)"\x00\x11" /* 16-bit prio */
289 "\x00" /* no RNAME */
290 "\x00\x01" /* RR (1 == ALPN) */
291 "\x00\x00", /* data size */
292 7,
293 "r:0|p:17|.|"
294 },
295 {
296 "unsupported field",
297 (const unsigned char *)"\xff\xff" /* 16-bit prio */
298 "\x00" /* no RNAME */
299 "\x00\x07" /* RR (7 == not a supported data) */
300 "\x00\x02" /* data size */
301 "FF", /* unknown to curl */
302 9,
303 "r:0|p:65535|.|"
304 },
305 {
306 "unsupported field (wrong size)",
307 (const unsigned char *)"\xff\xff" /* 16-bit prio */
308 "\x00" /* no RNAME */
309 "\x00\x07" /* RR (7 == not a supported data) */
310 "\x00\x02" /* data size */
311 "F", /* unknown to curl */
312 8,
313 "r:8|"
314 },
315 {
316 "port number",
317 (const unsigned char *)"\x00\x10" /* 16-bit prio */
318 "\x00" /* no RNAME */
319 "\x00\x01" /* RR (1 == ALPN) */
320 "\x00\x03" /* data size */
321 "\x02" /* ALPN length byte */
322 "h2"
323 "\x00\x03" /* RR (3 == PORT) */
324 "\x00\x02" /* data size */
325 "\x12\x34", /* port number */
326 16,
327 "r:0|p:16|.|alpn:10|port:4660|"
328 },
329 {
330 "port number with wrong size (3 bytes)",
331 (const unsigned char *)"\x00\x10" /* 16-bit prio */
332 "\x00" /* no RNAME */
333 "\x00\x01" /* RR (1 == ALPN) */
334 "\x00\x03" /* data size */
335 "\x02" /* ALPN length byte */
336 "h2"
337 "\x00\x03" /* RR (3 == PORT) */
338 "\x00\x03" /* data size */
339 "\x12\x34\x00", /* 24-bit port number */
340 17,
341 "r:43|"
342 },
343 {
344 "port number with wrong size (1 byte)",
345 (const unsigned char *)"\x00\x10" /* 16-bit prio */
346 "\x00" /* no RNAME */
347 "\x00\x01" /* RR (1 == ALPN) */
348 "\x00\x03" /* data size */
349 "\x02" /* ALPN length byte */
350 "h2"
351 "\x00\x03" /* RR (3 == PORT) */
352 "\x00\x01" /* data size */
353 "\x12", /* 8-bit port number */
354 15,
355 "r:43|"
356 },
357 {
358 "alpn + two IPv4 addresses",
359 (const unsigned char *)"\x00\x10" /* 16-bit prio */
360 "\x00" /* no RNAME */
361 "\x00\x01" /* RR (1 == ALPN) */
362 "\x00\x03" /* data size */
363 "\x02" /* ALPN length byte */
364 "h2"
365 "\x00\x04" /* RR (4 == Ipv4hints) */
366 "\x00\x08" /* data size */
367 "\xc0\xa8\x00\x01" /* 32 bits */
368 "\xc0\xa8\x00\x02", /* 32 bits */
369 22,
370 "r:0|p:16|.|alpn:10|ipv4:192.168.0.1|ipv4:192.168.0.2|"
371 },
372 {
373 "alpn + two IPv4 addresses in wrong order",
374 (const unsigned char *)"\x00\x10" /* 16-bit prio */
375 "\x00" /* no RNAME */
376 "\x00\x04" /* RR (4 == Ipv4hints) */
377 "\x00\x08" /* data size */
378 "\xc0\xa8\x00\x01" /* 32 bits */
379 "\xc0\xa8\x00\x02" /* 32 bits */
380 "\x00\x01" /* RR (1 == ALPN) */
381 "\x00\x03" /* data size */
382 "\x02" /* ALPN length byte */
383 "h2",
384 22,
385 "r:8|"
386 },
387 {
388 "alpn + IPv4 address with wrong size",
389 (const unsigned char *)"\x00\x10" /* 16-bit prio */
390 "\x00" /* no RNAME */
391 "\x00\x01" /* RR (1 == ALPN) */
392 "\x00\x03" /* data size */
393 "\x02" /* ALPN length byte */
394 "h2"
395 "\x00\x04" /* RR (4 == Ipv4hints) */
396 "\x00\x05" /* data size */
397 "\xc0\xa8\x00\x01\xff", /* 32 + 8 bits */
398 19,
399 "r:43|"
400 },
401 {
402 "alpn + one IPv6 address",
403 (const unsigned char *)"\x00\x10" /* 16-bit prio */
404 "\x00" /* no RNAME */
405 "\x00\x01" /* RR (1 == ALPN) */
406 "\x00\x03" /* data size */
407 "\x02" /* ALPN length byte */
408 "h2"
409 "\x00\x06" /* RR (6 == Ipv6hints) */
410 "\x00\x10" /* data size */
411 "\xfe\x80\xda\xbb\xc1\xff\xfe\xa3\x8a\x22\x12\x34\x56\x78\x91\x23",
412 30,
413 "r:0|p:16|.|alpn:10|ipv6:fe80:dabb:c1ff:fea3:8a22:1234:5678:9123|"
414 },
415 {
416 "alpn + one IPv6 address with wrong size",
417 (const unsigned char *)"\x00\x10" /* 16-bit prio */
418 "\x00" /* no RNAME */
419 "\x00\x01" /* RR (1 == ALPN) */
420 "\x00\x03" /* data size */
421 "\x02" /* ALPN length byte */
422 "h2"
423 "\x00\x06" /* RR (6 == Ipv6hints) */
424 "\x00\x11" /* data size */
425 "\xfe\x80\xda\xbb\xc1\xff\xfe\xa3\x8a\x22\x12\x34\x56\x78\x91\x23\x45",
426 31,
427 "r:43|"
428 },
429 {
430 "alpn + two IPv6 addresses",
431 (const unsigned char *)"\x00\x10" /* 16-bit prio */
432 "\x00" /* no RNAME */
433 "\x00\x01" /* RR (1 == ALPN) */
434 "\x00\x03" /* data size */
435 "\x02" /* ALPN length byte */
436 "h2"
437 "\x00\x06" /* RR (6 == Ipv6hints) */
438 "\x00\x20" /* data size */
439 "\xfe\x80\xda\xbb\xc1\xff\xfe\xa3\x8a\x22\x12\x34\x56\x78\x91\x23"
440 "\xee\x80\xda\xbb\xc1\xff\xfe\xa3\x8a\x22\x12\x34\x56\x78\x91\x25",
441 46,
442 "r:0|p:16|.|alpn:10|ipv6:fe80:dabb:c1ff:fea3:8a22:1234:5678:9123|"
443 "ipv6:ee80:dabb:c1ff:fea3:8a22:1234:5678:9125|"
444 },
445 {
446 "alpn + ech",
447 (const unsigned char *)"\x00\x10" /* 16-bit prio */
448 "\x00" /* no RNAME */
449 "\x00\x01" /* RR (1 == ALPN) */
450 "\x00\x03" /* data size */
451 "\x02" /* ALPN length byte */
452 "h2"
453 "\x00\x05" /* RR (5 == ECH) */
454 "\x00\x10" /* data size */
455 "\xfe\x80\xda\xbb\xc1\xff\xfe\xa3\x8a\x22\x12\x34\x56\x78\x91\x23",
456 30,
457 "r:0|p:16|.|alpn:10|ech:fe80dabbc1fffea38a22123456789123|"
458 },
459 {
460 "fully packed",
461 (const unsigned char *)"\xa0\x0b" /* 16-bit prio */
462 "\x00" /* no RNAME */
463 "\x00\x00" /* RR (0 == MANDATORY) */
464 "\x00\x00" /* data size */
465 "\x00\x01" /* RR (1 == ALPN) */
466 "\x00\x06" /* data size */
467 "\x02" /* ALPN length byte */
468 "h2"
469 "\x02" /* ALPN length byte */
470 "h1"
471 "\x00\x02" /* RR (2 == NO DEFAULT ALPN) */
472 "\x00\x00" /* must be zero */
473 "\x00\x03" /* RR (3 == PORT) */
474 "\x00\x02" /* data size */
475 "\xbc\x71" /* port number */
476 "\x00\x04" /* RR (4 == Ipv4hints) */
477 "\x00\x08" /* data size */
478 "\xc0\xa8\x00\x01" /* 32 bits */
479 "\xc0\xa8\x00\x02" /* 32 bits */
480 "\x00\x05" /* RR (5 == ECH) */
481 "\x00\x10" /* data size */
482 "\xfe\x80\xda\xbb\xc1\xff\x7e\xb3\x8a\x22\x12\x34\x56\x78\x91\x23"
483 "\x00\x06" /* RR (6 == Ipv6hints) */
484 "\x00\x20" /* data size */
485 "\xfe\x80\xda\xbb\xc1\xff\xfe\xa3\x8a\x22\x12\x34\x56\x78\x91\x23"
486 "\xee\x80\xda\xbb\xc1\xff\xfe\xa3\x8a\x22\x12\x34\x56\x78\x91\x25"
487 "\x01\x07" /* RR (263 == not supported) */
488 "\x00\x04" /* data size */
489 "FFAA", /* unknown to the world */
490 103,
491 "r:0|p:40971|.|alpn:10|alpn:8|no-def-alpn|port:48241|"
492 "ipv4:192.168.0.1|ipv4:192.168.0.2|"
493 "ech:fe80dabbc1ff7eb38a22123456789123|"
494 "ipv6:fe80:dabb:c1ff:fea3:8a22:1234:5678:9123|"
495 "ipv6:ee80:dabb:c1ff:fea3:8a22:1234:5678:9125|"
496 },
497 {
498 "rname too long label",
499 (const unsigned char *)"\x00\x00" /* 16-bit prio */
500 "\x40"
501 "0123456789012345678901234567890123456789012345678901234567890123"
502 "\x04some\x00", /* RNAME */
503 73,
504 "r:27|",
505 },
506 {
507 "rname long label",
508 (const unsigned char *)"\x00\x00" /* 16-bit prio */
509 "\x3f"
510 "012345678901234567890123456789012345678901234567890123456789012"
511 "\x04some\x00", /* RNAME */
512 72,
513 "r:0|p:0|"
514 "012345678901234567890123456789012345678901234567890123456789012.some.|",
515 },
516 };
518 CURLcode result = CURLE_OUT_OF_MEMORY;
519 CURL *easy;
521 easy = curl_easy_init();
522 /* so that we get the log output: */
523 curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L);
524 if(easy) {
525 unsigned int i;
527 for(i = 0; i < CURL_ARRAYSIZE(t); i++) {
528 struct Curl_https_rrinfo *hrr;
530 curl_mprintf("test %u: %s\n", i, t[i].name);
532 result = doh_resp_decode_httpsrr(easy, t[i].dns, t[i].len, &hrr);
534 /* create an output */
535 rrresults(hrr, result);
537 /* is the output the expected? */
538 if(strcmp(rrbuffer, t[i].expect)) {
539 curl_mfprintf(stderr, "Test %s (%u) failed\n"
540 "Expected: %s\n"
541 "Received: %s\n", t[i].name, i, t[i].expect, rrbuffer);
542 unitfail++;
543 }
545 /* free the generated struct */
546 if(hrr) {
547 Curl_httpsrr_destroy(hrr);
548 }
549 }
550 curl_easy_cleanup(easy);
551 }
553 UNITTEST_END(curl_global_cleanup())
554}
556#else /* CURL_DISABLE_DOH || !USE_HTTPSRR */
558static CURLcode test_unit1658(const char *arg)
559{
560 UNITTEST_BEGIN_SIMPLE
561 UNITTEST_END_SIMPLE
562}
564#endif
Diagnostics4 git calls · 160 ms
CallStatusSizeTime0160 ms
discover200152 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 git.response.bytes=152 git.server.agent=gitty/1.0 git.server.object_format=sha1 git.server.caps=agent ls-refs fetch object-format git.server.fetch=shallow filter sideband-all git.protocol.version=2 git.pkt.frames=8 git.pkt.data=6 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=152 git.pkt.payload.max=34
ls-refs200149 B · hit4 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=4 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=4 git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=149 git.pkt.payload.max=78 git.ls_refs.count=2 git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit25 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=25 git.fetch.filter=blob:none git.fetch.filter.requested=tree:0 git.fetch.filter.fallback=blob:none git.fetch.filter.learned=false git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=10 git.pkt.data=8 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=293470 git.pkt.payload.max=65516 git.sideband.band1.bytes=293354 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=87 git.pack.bytes=293354 git.pack.ofs_delta=0 git.pack.ref_delta=1 git.pack.chain.max=1 git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0 git.pack.full=86Open pack map
fetch2003.6 KiB131 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=131 git.response.bytes=3641 git.response.cache=MISS git.response.duration_ms=131 git.fetch.wants=fa7e7cc0185540d1b32cd0d48aaceff9378ae0e8 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=3641 git.pkt.payload.max=3620 git.sideband.band1.bytes=3619 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
- Ref
- refs/heads/master
- Commit
- 31c911efe5652725e930f4d2e60c9060e5f6646d
- cf-ray
- a5e2e6fdf85becfa
- Request
- 4fc64037…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format