737 Commits

Author SHA1 Message Date
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
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
yuyi
79786732ef
all: replace struct field name '@type' with 'type' (#22485) 2024-10-11 08:53:18 +03:00
Carlos Esquerdo Bernat
d1606b22b7
net: allow for a ::ffff:127.0.0.1 result in tcp_simple_client_server_test.v (#22385) 2024-10-02 17:31:01 +03:00
Carlos Esquerdo Bernat
e598db12d3
net: add more SocketOptions enum values, make public fn new_tcp_socket (#22378) 2024-10-01 11:42:30 +03:00
Felipe Pena
04aba8f767
net: fix split_address (fix #14909) (#22349) 2024-09-30 08:25:39 +03:00
Felipe Pena
9bc975eb07
net: allow ipv6 address with brackets (fix #22313) (#22316) 2024-09-26 08:18:52 +03:00
Delyan Angelov
295807d7ef
net: use explicit int casts for net.error_eintr etc in the unix implementation too for consistency with the windows one 2024-09-22 15:28:20 +03:00
Delyan Angelov
2f59018a96
net: fix compilation on windows (use casts to int for net.error_eintr etc) 2024-09-22 15:22:26 +03:00
Jacob Davis
3ec4939506
net.websocket: use retrying on EINTR in Client.listen() (#22279) 2024-09-22 07:48:53 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
Felipe Pena
4eb087a347
checker: add missing check for ref passing to non-ref (#22194) 2024-09-14 23:13:25 +03:00
Delyan Angelov
efe709eb34
ci: run npx prettier --write **.yml; ensure it is run on all .yml files, not just the ones in the .github/workflows/ folder 2024-09-12 11:43:03 +03:00
yuyi
dd2210abf6
ast: fix const field str() (#22192) 2024-09-10 17:02:51 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Martin Skou
f002fd4493
net.mbedtls: store the client ip (for ipv4), shutdown on handshake failure, in .accept() (#22184) 2024-09-09 18:55:28 +03:00
Martin Skou
d7bdb72b48
net.mbedtls: support Server Name Indication (SNI) (#22012) 2024-08-11 20:26:13 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
3247b98bb5
ast: fix const field str() (#21998) 2024-08-06 17:42:24 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
dasidiot
576a0abcc7
net: add net.Dialer and net.Connection interfaces, abstracting the different types of connections, already supported by the V network stack (#21657) 2024-08-05 18:16:06 +03:00
Delyan Angelov
e906033e4e
ci: use docker compose instead of docker-compose (see https://github.com/orgs/community/discussions/116610) (#21992) 2024-08-03 19:50:52 +03:00
Delyan Angelov
faea2d97bf
net.http: fix a typo, affecting -d trace_http_response 2024-08-02 00:01:14 +03:00
Felipe Pena
ac136c08e6
cgen: fix struct ref field with no ref structinit (#21932) 2024-07-28 01:30:19 +03:00
kbkpbot
4c30d357fe
net.conv: add conv.reverse_bytes_u64/u32/u16 (#21917) 2024-07-23 18:41:59 +03:00
Delyan Angelov
fbdc992b30
net.http, veb, vweb, x.vweb: add mime type text/x-vlang, for .v and .vsh file extensions (#21851) 2024-07-12 14:23:50 +03:00
Swastik Baranwal
547c056bf4
net: fix TcpConn.peer_ip/0 to only return the ip address, without the port number (#21831) 2024-07-10 06:12:37 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
FNEOSLDI
094c30c347
net.http: correct Response.status() method comment, to indicate returning of a Status enum field, instead of struct (#21735) 2024-06-26 07:45:16 +03:00
Turiiya
5b9358279a
vlib: simplify byte character conditions by using methods like is_capital, is_lower, is_letter etc (#21725) 2024-06-25 09:55:08 +03:00
Alexander Medvednikov
0d52a7d91e openssl: more verbose error; libgc: make compile on arm macs 2024-06-07 11:48:27 +03:00
Turiiya
a2ce55d922
builtin: update last_index_u8, deprecate index_u8_last string methods, make consistent with last_index (#21604) 2024-06-04 13:21:47 +03:00
Delyan Angelov
8504beaaab
net.http: implement http.download_file_with_progress/2, saving each chunk, as it is received, without growing the memory usage (#21633) 2024-06-02 10:26:37 +03:00
Delyan Angelov
2d12b03435
net.html: quick workaround for a cgen problem for const x = int(0x80000000) 2024-06-01 11:29:09 +03:00
Turiiya
4bda28b718
net.urllib: update parse host to allow for better error handling (#21602) 2024-05-30 17:38:15 +03:00
Turiiya
ea20c1fa58
net.urllib: cleanup parse_authority, add test (#21599) 2024-05-30 02:20:34 +03:00
Delyan Angelov
a1ad658d27
net.http: change default http.Server listening address to :9009, to avoid conflicts with tools, that start their own http servers on 8080 like bytehound (#21570) 2024-05-25 14:30:10 +03:00
Delyan Angelov
cc72c2e579
ci: shorten path used for unix domain socket tests (to fit in Windows path limits) 2024-05-24 20:15:50 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Delyan Angelov
9f2cb8ccbb ci: mark again tcp_test.v as flaky (it had 3 unrelated failures on the CI over the last week) 2024-05-19 10:32:44 +03:00
Rom
2a614bd0a8
net.unix: remove debug/trace eprintln (#21517) 2024-05-17 08:45:26 +03:00
Delyan Angelov
20f907a70d
ci: reduce false negatives for tcp_test.v, retry it 3 times before failing 2024-05-07 15:30:56 +03:00
Delyan Angelov
44c84f6187
net: improve error message in .port() 2024-05-05 21:22:36 +03:00
vcker
a4cdc48542
net: add a .port()! method for net.Addr (#21412) 2024-05-05 20:12:33 +03:00
Turiiya
712a9125bf
all: use apt over apt-get for common APT subcommands (#21359) 2024-04-26 21:01:52 +03:00
Turiiya
8dafca126f
test, ci: fix network tests; update and activate tests in periodic ci (#21339) 2024-04-25 02:15:22 +03:00
Delyan Angelov
354b21003a
net.http.file: fix usage examples (add closing apostrophes) 2024-04-23 17:20:05 +03:00
Delyan Angelov
4f0a8b5ee2
net.http.file: support index_file (index.html by default), and auto_index (true by default) parameters to file.serve() 2024-04-22 08:28:51 +03:00