Commit graph

786 commits

Author SHA1 Message Date
Delyan Angelov
3080b41687
net.http.file: allow for serving requests to static files with cache busting suffixes like /dist/littlejs.js?1117
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
2025-09-06 15:59:08 +03:00
kfont
083d3dba38
net.http: Use a full url when using a proxy, instead of only the path (#25228) 2025-09-05 19:24:59 +03:00
Delyan Angelov
f6d5ef61b2
net: improve tracing output for -d trace_tcp; move error_code() calls right after the corresponding C APIs (errno is a global that should be read immediately to be valid) 2025-08-30 00:11:19 +03:00
Delyan Angelov
a88df91938
net.http: reduce the false positives on the CI for server_test.v, let test_host_header_sent_to_server return early, when the server can not start
Some checks are pending
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
2025-08-16 11:53:44 +03:00
Delyan Angelov
60108cdd33
ci: bump retry count for server_test.v to 5 (reduce false positives on windows)
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
2025-08-10 14:06:01 +03:00
D4MI4NX
51552c7b16
net.http: remove debug println statement from post_multipart_form (#25030) 2025-08-03 10:04:49 +03:00
Delyan Angelov
ec5eeb57b2
net.http: fix panic in parse_multipart_form for invalid boundary (fix #24974) (#24976)
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
2025-07-25 21:30:36 +03:00
Delyan Angelov
e22f4d2979
ci: retry 2 times vlib/net/http/server_test.v to avoid false positives for unrelated commits/PRs 2025-07-25 09:05:24 +03:00
Alexander Medvednikov
d87b8c2627 checker: improve virtual C consts 2025-07-19 19:27:59 +03:00
Alexander Medvednikov
f683ab69d6 net.http: handle Content-Length: 0 2025-07-08 13:54:19 +03:00
Delyan Angelov
4db6408e0b ci: mark tcp_test.v and unix_socket_test.v as flaky (they still fail sporadically on the CI, although very rarely now) 2025-07-06 21:32:40 +03:00
Delyan Angelov
99be39cbd1
ci: remove the // vtest flaky: true tags from the remaining tests (#24379) 2025-06-19 20:16:49 +03:00
Laurent Cheylus
2bc5887398
net.http: set the IP address for the HTTP server during tests (fix #22126) (#24698) 2025-06-11 18:46:22 +03:00
kbkpbot
1274cdc344
thirdparty: upgrade to mbedtls v3.6.3.1, add a .patch file with the local changes (#24602) 2025-05-31 12:02:37 +03:00
Laurent Cheylus
a8aeae2111
net.openssl: replace SSL_get1_peer_certificate by SSL_get_peer_certificate for OpenBSD (#24556)
OpenBSD uses LibreSSL (OpenSSL fork) by default for libssl/libcrypto.
SSL_get1_peer_certificate is not supported by LibreSSL, replace it by
SSL_get_peer_certificate.
2025-05-23 16:15:48 +03:00
Delyan Angelov
171df75cc7
veb: reduce veb_max_write_bytes from 16KB to 2KB (fix sending large dynamic responses from veb on macos/freebsd) (fix #24523) (#24522) 2025-05-19 15:30:21 +03:00
Delyan Angelov
811d486733
tests: use another web service in http_httpbin_test.v, instead of httpbin.org (which is slow and is not reliable anymore for the CI) 2025-05-15 20:39:19 +03:00
Delyan Angelov
ded45dce4c net.http: support v -http -d http_folder=vlib/_docs (allow customizing the folder, port, and index file through CLI arguments to v -http) 2025-05-14 21:54:21 +03:00
Delyan Angelov
a1d94500e6
all: remove deprecations made before 2024-11-06 2025-05-05 09:31:32 +03:00
Delyan Angelov
59909cde89
ci: use windows-2025 for the gcc-windows job (since it has gcc 14.2.0) (#24304) 2025-04-24 13:03:25 +03:00
leopardracer
f3fb8b46ad
flag,net.websocket: fix typos in errors, traces and comments (#24251) 2025-04-16 17:34:15 +03:00
larpon
20d7d9758b
net: make close/0, select/2 and remote/0 methods of UdpSocket pub (#24004) 2025-03-22 16:41:32 +02:00
larpon
bd064dd695
net: add read_ptr/2 (from read/1) to UdpConn for consistency with TcpConn (#24000) 2025-03-21 23:49:31 +02:00
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
Alexander Medvednikov
951d30405f builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
Delyan Angelov
4c8f8c6666
net.openssl: use proper library search path for local installations of OpenSSL 3, use SSL_get1_peer_certificate instead of the deprecated SSL_get_peer_certificate . 2025-03-02 09:39:21 +02:00
kilavvy
8aef3c72b4
all: fix typos in documentation files (#23822) 2025-02-28 02:42:55 +03:00
Delyan Angelov
da093882f7
net.unix: make unix_socket_test.v trace its actions more thoroughly 2025-02-17 22:26:53 +02:00
Delyan Angelov
55f482bb63
ci: update linux image runners from ubuntu-20.04 to ubuntu-24.04 (#23706) 2025-02-17 07:37:59 +02:00
kbkpbot
f053f99406
net.http.file: use urllib decode uri, to handle urls to files that have unicode characters in their name (fix #23683) (#23684) 2025-02-10 21:36:56 +02:00
Emma
6b92f8fada
all: remove ancient deprecations (#23479) 2025-01-16 16:36:12 +02:00
Thomas Peißl
d680c4227b
net.smtp: make public the Attachment fields (to be used as plain structs in initialisation) (#23477) 2025-01-15 20:24:36 +02:00
Alexander Medvednikov
6f7cbd1aef net.ftp: use unsafe { nil } 2025-01-14 02:01:07 +03:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
JalonSolov
0351332761
net.http.cookie: handle value with = better (fix #23297) (#23300) 2024-12-28 22:40:23 +02:00
Felipe Pena
6025893768
net.smtp: fix crash when reconnecting with .encrypted=true (fix #23289) (#23290) 2024-12-27 21:51:22 +02:00
kbkpbot
4a1c7add24
net.http: add support '=' in cookie values (fix #23220) (#23257) 2024-12-27 10:33:16 +02:00
Felipe Pena
b0772193f8
vlib: enable more satnitized memleak detection runs without false positives on the CI (#23200) 2024-12-20 16:09:16 +02:00
kbkpbot
03f3f7a9ff
net.urllib: fix parse of url relative address (fix #21061) (#23180) 2024-12-16 16:59:58 +02:00
Delyan Angelov
37e2fdbafb
net.mbedtls: support compiling with -d mbedtls_client_read_timeout_ms=7000, -d mbedtls_server_read_timeout_ms=60000, and -d trace_mbedtls_timeouts 2024-12-01 20:10:14 +02:00
Vithorio Polten
f89cffad53
net.http: send Host headers with port (when the port is != 80 or 443) (fix #22941) (#22942) 2024-11-23 18:51:28 +02:00
Delyan Angelov
9f6150ee7b
net.mbedtls: bump mbedtls_ssl_conf_read_timeout value to 550ms (tested with v run examples/net_t.v) 2024-11-21 00:15:18 +02:00
Delyan Angelov
4b015c8bc0
net.mbedtls: define MBEDTLS_THREADING_PTHREAD, in mbedtls_config.h; call C.mbedtls_ssl_conf_read_timeout explicitly in the wrapper, with a shorter timeout value of 317ms (determined experimentally) 2024-11-20 23:42:19 +02:00
Delyan Angelov
5bba92a65a
vlib: remove modules/functions/fields, deprecated in 2023 (#22750) 2024-11-17 20:09:21 +02:00
Felipe Pena
62bdf990d0
checker: fix missing or-block check for callexpr (fix #22835) (#22840) 2024-11-13 12:30:06 +02:00
Delyan Angelov
4aa87796ed
net.http: ensure that http.download_file_with_progress/3 works (in a degraded mode), on windows, even without passing -d no_vschannel 2024-11-13 11:43:37 +02:00
Delyan Angelov
a189d7f8e8
net: fix resolving of ::1:48872 (pass the *should_listen_on_both_ipv4_and_ipv6_by_default_test.v tests) (#22715) 2024-10-31 18:22:25 +02:00
Alexander Medvednikov
27ff2f1628 orm: cross compile pg to linux; openssl: make cross compile work 2024-10-28 17:37:34 +03:00
Hitalo Souza
4e13ddf847
picoev,net.http: use Time.http_header_string method, to improve performance (#22619) 2024-10-22 16:39:48 +03:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547) 2024-10-17 11:04:23 +03:00