1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

600 Commits

Author SHA1 Message Date
ffdd5bb955 net.mbedtls: fix an error with in_memory_verification (fix #19051) (#19052) 2023-08-04 01:32:33 +03:00
ecca3b155e net.mbedtls: add SSLListener to allow creating SSL servers (#19022) 2023-08-01 20:45:50 +03:00
177bb30013 net: change default of the socket used by net.listen_tcp, to dualstack, even if the OS has a different default. Allow changing the listen backlog too
With this change, example vweb programs, will continue to be available to both
ipv6 and ipv4 connections from the same machine, even after doing (on linux):
`echo 1 | sudo tee /proc/sys/net/ipv6/bindv6only`

Previously, after that, vweb programs responded only to ipv6 connections, but not to ipv4 ones,
i.e. opening http://127.0.0.1:8082/ stopped working, for `v run examples/vweb/vweb_example.v` .

Note: GO web servers have the same behaviour, which is convenient for development/testing,
since it makes the programs more consistent and robust in the face of OS settings changes.
2023-08-01 11:32:08 +03:00
fd81bae361 net.websocket: remove unnecessary manual frees of static strings (#19009) 2023-07-31 21:23:33 +03:00
41f99c1abf tools: add cmd/tools/show_ancient_deprecations.v, to cleanup ancient functionality, deprecated over an year ago (#18946) 2023-07-22 19:13:58 +03:00
c3ff4b2f85 net.conv: rename functions to match other langs, making them easier t… (#18937) 2023-07-22 09:11:01 +03:00
l-m
36d45c6d14 net.http.chunked: return !string on decode (#18928) 2023-07-21 16:37:55 +03:00
ef049839ab ci: fix failing tests-sanitize-memory-clang (regression after 9047f7c) 2023-07-18 02:35:01 +03:00
c2dc1ca706 net.http: make listener public, and add addr in Server struct (#18871) 2023-07-16 15:42:30 +03:00
9047f7c9a8 vweb: fix parsing of form fields, send with multipart/form-data (by JS fetch) 2023-07-14 16:20:02 +03:00
f1bc5e6d46 http: Request.host 2023-07-14 14:26:11 +03:00
okk
7d6e15fa66 net.ftp: fix dir() for file names, which contain spaces (fix #18800) (#18804) 2023-07-07 06:50:20 +03:00
b2ca3ac089 net.html: fix semantic inconsistencies of tag retrieving functions (#18558) 2023-06-27 20:10:31 +03:00
8b25c4c9a3 net.http: copy IANA's list of methods to the http.Method enum (#18508) 2023-06-22 09:31:34 +03:00
126fbe8e33 scanner: fix indent error for line comment generated by vdoc (#18422) 2023-06-13 08:50:02 +03:00
54eabcb242 cgen: make the default values for all enums, be their first listed entry, even if it was enum MyEnum { first = 999 second}, not just the defaul 0 (#18388) 2023-06-11 21:57:36 +03:00
4174048f96 vweb: add host option to controller (#18303) 2023-05-30 14:22:23 +02:00
43bc85d3bb http: add workers to improve the server's concurrent capacity. (#18271) 2023-05-27 01:57:32 +03:00
c45c36ccce orm: improve an fkey error a bit 2023-05-24 18:30:44 +02:00
1be798be49 net.html: remove unnecessary comment (#18230) 2023-05-22 07:46:26 +03:00
a10690b934 net.conv: use a pure v implementation instead of C.hton etc (#18226) 2023-05-22 06:59:33 +03:00
e4c769d072 net.http: add remote-addr header (#18208) 2023-05-21 15:23:24 +02:00
cc47c78f39 net.mbedtls: make compile with -prod 2023-05-18 11:31:53 +02:00
c8d2098a14 net.websocket: make thread safe/concurrent (#18179) 2023-05-18 11:27:00 +02:00
67e3061ea1 net: fix typos (#18164) 2023-05-12 09:31:27 +03:00
e2e6c9660c net.html: add &Tag get_tag methods to find first occurrence (#18139) 2023-05-09 00:22:52 +03:00
39ec1134fa net.html: fix parsing of nested quoted strings in code tags (#18123) 2023-05-07 03:55:02 +03:00
353de60158 examples: fix unset reader notice for the smtp/mail example (#17998) 2023-05-02 22:54:57 +03:00
0898f57995 net.html: fix text parsing for inline tags (#18085) 2023-04-30 16:20:24 +03:00
7981d2854a net: fix typo give => given (#17955) 2023-04-14 11:15:16 +03:00
3d99f1f2c2 checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
51ad565ed6 vweb: implement worker pool (#17298) 2023-04-02 01:24:33 +02:00
57aa4def62 net.html: do not inject <text> tags for text that contains only newlines and spaces 2023-03-30 23:02:57 +03:00
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
bfb0932588 net.http.mime: execute v run vlib/net/http/mime/build.vsh to update db.v with the latest official mime types 2023-03-24 08:29:32 +02:00
aee76c5819 net: update new_request (#17618) 2023-03-17 22:17:22 +01:00
618c92a13b urllib: change Values.get to return an option type (#17636) 2023-03-14 08:44:40 +02:00
77b6bc1c1a net.websocket: fix a typo (allready -> already) (#17512) 2023-03-06 10:05:17 +02:00
4c13a4c22c ci: make websocket_test.v more robust (wait till the websocket server are open for connections, instead of relying on fixed time.sleep delays, which are not enough on the CI) 2023-02-25 19:39:14 +02:00
cf47a5f978 ci: fix websocket_test.v after a7ae3bf 2023-02-25 14:46:31 +02:00
a7ae3bfa78 ci: fix all ports for the servers started in websocket_test.v 2023-02-25 14:36:54 +02:00
cad2cd5583 docs: fix typos using codespell (#17332) 2023-02-16 11:43:39 +02:00
2d3508c872 net.websocket: call close event (#17300) 2023-02-13 14:28:41 +02:00
90591eb813 checker: check nested struct field with required attr (fix #10913) (#17277) 2023-02-11 11:22:31 +02:00
36dc7faf2c net.openssl: add manual .str() methods for C.SSL and C.SSL_CTX, fix a bug in the V auto str generation as well. 2023-02-08 13:14:12 +02:00
522a9f5908 net.openssl: add V side declaration for C.SSL_CTX too (fix auto .str() method generation for V structs containing references to C.SSL_CTX) 2023-02-08 12:33:21 +02:00
0b7a1cd7ce v: forbid local variable names, shadowing imported module names (#17197) 2023-02-03 09:09:41 +02:00
8cdc554c63 net.html: fix panic in html.parse() called with empty string, remove replacement of \n in the original content (#17206) 2023-02-03 00:32:03 +02:00
a932a8b1ea net.http: make the errors that parse_status_line returns more informative to make diagnosing problems easier 2023-01-31 15:26:08 +02:00
1d4fd53344 net.http: add documentation to http, method, server, and status (#17130) 2023-01-27 13:58:55 +02:00