Artifactspublic-v0

curl

master
ply4 git calls37 ms289 KiB3 cachedprotocol v2
289 lines4.5 KiBRaw
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/*
25 * The purpose of this tool is to figure out which, if any, features that are
26 * disabled which should otherwise exist and work. These are not visible in
27 * regular curl -V output.
28 *
29 * Disabled protocols are visible in curl_version_info() and are not included
30 * in this table.
31 */
32#include "curl_setup.h"
34#include "multihandle.h" /* for ENABLE_WAKEUP */
35#include "tool_xattr.h" /* for USE_XATTR */
36#include "curl_sha512_256.h" /* for CURL_HAVE_SHA512_256 */
37#include "vdns/asyn.h" /* for USE_RESOLV_ARES, USE_RESOLV_THREADED */
38#include "fake_addrinfo.h" /* for USE_FAKE_GETADDRINFO */
40#include <stdio.h>
42#ifdef USE_OPENSSL
43#include <openssl/opensslconf.h> /* for OPENSSL_NO_OCSP */
44#endif
46static const char * const disabled[] = {
47 "bindlocal: "
48#ifdef CURL_DISABLE_BINDLOCAL
49 "OFF"
50#else
51 "ON"
52#endif
53 ,
55 "cookies: "
56#ifdef CURL_DISABLE_COOKIES
57 "OFF"
58#else
59 "ON"
60#endif
61 ,
63 "basic-auth: "
64#ifdef CURL_DISABLE_BASIC_AUTH
65 "OFF"
66#else
67 "ON"
68#endif
69 ,
70 "bearer-auth: "
71#ifdef CURL_DISABLE_BEARER_AUTH
72 "OFF"
73#else
74 "ON"
75#endif
76 ,
77 "digest: "
78#ifdef CURL_DISABLE_DIGEST_AUTH
79 "OFF"
80#else
81 "ON"
82#endif
83 ,
84 "negotiate-auth: "
85#ifdef CURL_DISABLE_NEGOTIATE_AUTH
86 "OFF"
87#else
88 "ON"
89#endif
90 ,
91 "aws: "
92#ifdef CURL_DISABLE_AWS
93 "OFF"
94#else
95 "ON"
96#endif
97 ,
98 "httpsig: "
99#ifdef CURL_DISABLE_HTTPSIG
100 "OFF"
101#else
102 "ON"
103#endif
104 ,
105 "DoH: "
106#ifdef CURL_DISABLE_DOH
107 "OFF"
108#else
109 "ON"
110#endif
111 ,
112 "HTTP-auth: "
113#ifdef CURL_DISABLE_HTTP_AUTH
114 "OFF"
115#else
116 "ON"
117#endif
118 ,
119 "Mime: "
120#ifdef CURL_DISABLE_MIME
121 "OFF"
122#else
123 "ON"
124#endif
125 ,
127 "netrc: "
128#ifdef CURL_DISABLE_NETRC
129 "OFF"
130#else
131 "ON"
132#endif
133 ,
134 "parsedate: "
135#ifdef CURL_DISABLE_PARSEDATE
136 "OFF"
137#else
138 "ON"
139#endif
140 ,
141 "proxy: "
142#ifdef CURL_DISABLE_PROXY
143 "OFF"
144#else
145 "ON"
146#endif
147 ,
148 "shuffle-dns: "
149#ifdef CURL_DISABLE_SHUFFLE_DNS
150 "OFF"
151#else
152 "ON"
153#endif
154 ,
155 "resolv-threaded: "
156#ifndef USE_RESOLV_THREADED
157 "OFF"
158#else
159 "ON"
160#endif
161 ,
162 "typecheck: "
163#ifdef CURL_DISABLE_TYPECHECK
164 "OFF"
165#else
166 "ON"
167#endif
168 ,
169 "verbose-strings: "
170#ifdef CURL_DISABLE_VERBOSE_STRINGS
171 "OFF"
172#else
173 "ON"
174#endif
175 ,
176 "wakeup: "
177#ifndef ENABLE_WAKEUP
178 "OFF"
179#else
180 "ON"
181#endif
182 ,
183 "headers-api: "
184#ifdef CURL_DISABLE_HEADERS_API
185 "OFF"
186#else
187 "ON"
188#endif
189 ,
190 "xattr: "
191#ifndef USE_XATTR
192 "OFF"
193#else
194 "ON"
195#endif
196 ,
197 "form-api: "
198#ifdef CURL_DISABLE_FORM_API
199 "OFF"
200#else
201 "ON"
202#endif
203 ,
204 "large-time: "
205#if SIZEOF_TIME_T < 5
206 "OFF"
207#else
208 "ON"
209#endif
210 ,
211 "large-size: "
212#if SIZEOF_SIZE_T < 5
213 "OFF"
214#else
215 "ON"
216#endif
217 ,
218 "sha512-256: "
219#ifndef CURL_HAVE_SHA512_256
220 "OFF"
221#else
222 "ON"
223#endif
224 ,
226 "win32-ca-searchpath: "
227#if !defined(_WIN32) || \
228 (defined(CURL_WINDOWS_UWP) || \
229 defined(CURL_DISABLE_CA_SEARCH) || \
230 defined(CURL_CA_SEARCH_SAFE))
231 "OFF"
232#else
233 "ON"
234#endif
235 ,
236 "win32-ca-search-safe: "
237#if !defined(_WIN32) || !defined(CURL_CA_SEARCH_SAFE)
238 "OFF"
239#else
240 "ON"
241#endif
242 ,
244 "--libcurl: "
245#ifdef CURL_DISABLE_LIBCURL_OPTION
246 "OFF"
247#else
248 "ON"
249#endif
250 ,
251 "override-dns: "
252#if defined(CURL_MEMDEBUG) && \
253 (defined(USE_RESOLV_ARES) || defined(USE_FAKE_GETADDRINFO))
254 "ON"
255#else
256 "OFF"
257#endif
258 ,
259 "ssl-sessions: "
260#ifdef USE_SSLS_EXPORT
261 "ON"
262#else
263 "OFF"
264#endif
265 ,
266 "cert-status: "
267#if defined(USE_GNUTLS) || (defined(USE_OPENSSL) && !defined(OPENSSL_NO_OCSP))
268 "ON"
269#else
270 "OFF"
271#endif
272 ,
273 "getrlimit: "
274#ifdef HAVE_GETRLIMIT
275 "ON"
276#else
277 "OFF"
278#endif
279};
281int main(void)
283 size_t i;
285 for(i = 0; i < CURL_ARRAYSIZE(disabled); i++)
286 puts(disabled[i]);
288 return 0;
Diagnostics4 git calls · 37 ms
CallStatusSizeTime037 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=4
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 · hit3 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=3
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 · hit4 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=30
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=4
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.6 KiB · hit30 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1670
git.response.cache=HIT
git.response.duration_ms=30
git.fetch.wants=af046735e2e677ada96dd1084acc6d547c3d43d7
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=1670
git.pkt.payload.max=1649
git.sideband.band1.bytes=1648
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
a5e1b36e99105b65
Request
5ee295d2…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format