Artifactspublic-v0

curl

master
ply4 git calls30 ms288 KiB2 cachedprotocol v2
123 lines3.4 KiBexecutableRaw
1#!/usr/bin/env perl
2#***************************************************************************
3# _ _ ____ _
4# Project ___| | | | _ \| |
5# / __| | | | |_) | |
6# | (__| |_| | _ <| |___
7# \___|\___/|_| \_\_____|
8#
9# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11# This software is licensed as described in the file COPYING, which
12# you should have received as part of this distribution. The terms
13# are also available at https://curl.se/docs/copyright.html.
15# You may opt to use, copy, modify, merge, publish, distribute and/or sell
16# copies of the Software, and permit persons to whom the Software is
17# furnished to do so, under the terms of the COPYING file.
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
22# SPDX-License-Identifier: curl
24#***************************************************************************
26use strict;
27use warnings;
29# This script invokes nghttpx properly to have it serve HTTP/3 for us.
30# nghttpx runs as a proxy in front of our "actual" HTTP/1 server.
32use Cwd;
33use Cwd 'abs_path';
34use File::Basename;
35use File::Spec;
37my $verbose = 0; # set to 1 for debugging
38my $logdir = "log";
39my $pidfile = "$logdir/nghttpx.pid";
40my $logfile = "$logdir/http3.log";
41my $nghttpx = "nghttpx";
42my $listenport = 9017;
43my $connect = "127.0.0.1,8990";
44my $cert = "test-localhost";
45my $conf = "nghttpx.conf";
46my $dev_null = File::Spec->devnull();
48#***************************************************************************
49# Process command line options
51while(@ARGV) {
52 if($ARGV[0] eq '--verbose') {
53 $verbose = 1;
54 }
55 elsif($ARGV[0] eq '--pidfile') {
56 if($ARGV[1]) {
57 $pidfile = $ARGV[1];
58 shift @ARGV;
59 }
60 }
61 elsif($ARGV[0] eq '--nghttpx') {
62 if($ARGV[1]) {
63 $nghttpx = $ARGV[1];
64 shift @ARGV;
65 }
66 }
67 elsif($ARGV[0] eq '--port') {
68 if($ARGV[1]) {
69 $listenport = $ARGV[1];
70 shift @ARGV;
71 }
72 }
73 elsif($ARGV[0] eq '--connect') {
74 if($ARGV[1]) {
75 $connect = $ARGV[1];
76 $connect =~ s/:/,/;
77 shift @ARGV;
78 }
79 }
80 elsif($ARGV[0] eq '--cert') {
81 if($ARGV[1]) {
82 $cert = $ARGV[1];
83 shift @ARGV;
84 }
85 }
86 elsif($ARGV[0] eq '--logfile') {
87 if($ARGV[1]) {
88 $logfile = $ARGV[1];
89 shift @ARGV;
90 }
91 }
92 elsif($ARGV[0] eq '--logdir') {
93 if($ARGV[1]) {
94 $logdir = $ARGV[1];
95 shift @ARGV;
96 }
97 }
98 elsif($ARGV[0] eq '--conf') {
99 if($ARGV[1]) {
100 $conf = $ARGV[1];
101 shift @ARGV;
102 }
103 }
104 else {
105 print STDERR "\nWarning: http3-server.pl unknown parameter: '$ARGV[0]'\n";
106 }
107 shift @ARGV;
110my $certfile = abs_path("certs/$cert.pem");
111my $keyfile = abs_path("certs/$cert.key");
113my $cmdline = "$nghttpx --http2-proxy --backend=$connect " .
114 "--backend-keep-alive-timeout=500ms " .
115 "--frontend=\"*,$listenport\" " .
116 "--frontend=\"*,$listenport;quic\" " .
117 "--log-level=INFO " .
118 "--pid-file=$pidfile " .
119 "--errorlog-file=$logfile " .
120 "--conf=$conf " .
121 "$keyfile $certfile";
122print "RUN: $cmdline\n" if($verbose);
123exec("exec $cmdline 2>$dev_null");
Diagnostics4 git calls · 30 ms
CallStatusSizeTime030 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
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 B2 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=149
git.response.cache=UPDATING
git.response.duration_ms=2
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 · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=25
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=2
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=86
Open pack map
fetch2001.3 KiB · hit25 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1296
git.response.cache=HIT
git.response.duration_ms=25
git.fetch.wants=9083cf440f8689e1791e5025b70937b2311cda29
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=1296
git.pkt.payload.max=1275
git.sideband.band1.bytes=1274
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
a5e268ea2d0a6019
Request
3be05cce…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format