Laytan Laats
9cace19277
net(docs): recv of 0 bytes with no error is a graceful close
2025-12-21 19:10:42 +01:00
gingerBill
842cfee0f3
Change Odin's LICENSE to zlib from BSD 3-clause
...
This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
2025-10-28 14:38:25 +00:00
Laytan Laats
ff7d55a8e1
net: rework errors to be cross-platform
2025-04-05 17:35:19 +02:00
gingerBill
a300a860ec
Add #+feature dynamic-literals to tests
2025-01-05 13:46:58 +00:00
gingerBill
327ca2ab71
Merge pull request #4261 from laytan/net-bound-endpoint
...
net: add `bound_endpoint` procedure
2024-09-19 12:53:42 +01:00
Laytan Laats
652557bfcd
net: add bound_endpoint procedure
2024-09-17 22:22:19 +02:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Karl Zylinski
8c636ac37b
Fix build tags that use ! multiple times on one line. Those don't actually do anything since build tags use OR within the line. So something like //+build !windows, !linux would actually build on both linux and windows. What was intended in all these cases was probably AND, which you get by splitting them into separate lines.
2024-09-07 22:02:17 +02:00
Jeroen van Rijn
cc24d2de3e
Merge pull request #3810 from Feoramund/freebsd-core-net
...
Port `core:net` to FreeBSD
2024-08-09 09:50:05 +02:00
Feoramund
fe754af13d
Add new contribution notes to core:net
2024-08-05 03:05:49 -04:00
Feoramund
42a2297d31
Add core:net tests specifically for FreeBSD
2024-08-05 02:08:48 -04:00
Feoramund
8e64265aed
Replace unneeded transmute
2024-06-30 16:39:22 -04:00
Feoramund
1e7dfd0e34
Add more core:net tests
...
- UDP send & read
- DNS resolution
- Nonblocking socket option
2024-06-30 16:39:22 -04:00
Feoramund
ba05c74936
Enable core:net tests for FreeBSD
2024-06-26 10:05:24 -04:00
Feoramund
76292c8ed5
Forbid all BSDs from running core:net tests
...
`net` is not yet implemented on them.
2024-06-11 03:55:41 -04:00
Laytan Laats
0a528777e8
utilize odin test -all-packages instead of (make/bat) scripts for running tests
2024-06-07 15:50:00 +02:00
Jeroen van Rijn
62b7d8de97
Port tests\core\net
2024-06-02 14:47:09 -04:00
blob1807
a4d16e97a1
Fix CI's parser
2024-04-13 01:14:55 +10:00
blob1807
6348b56c8b
Move rounded tests
2024-04-13 00:57:36 +10:00
blob1807
c753711d86
Added support for URL fragments
...
Added support for a URL's fragment/anchor to `split_url` & `join_url` in `core:net` plus 4 new tests to cover it.
2024-04-13 00:39:32 +10:00
Laytan Laats
e6bd79c882
Make sure we are listening before starting the client
2024-02-20 23:54:11 +01:00
Laytan Laats
9e417592e3
Add logs to flaky test
2024-02-20 23:45:15 +01:00
Laytan Laats
bdd6a86d73
Remove flaky test
...
It wasn't testing the right thing in the previous
iteration.
And in this iteration the behaviour is a timeout on Unix, and
nothing on Windows.
2024-02-20 23:15:18 +01:00
Laytan Laats
1ab3ec5731
Improve net tests
...
Watching the sporadic CI failures it seems to come from these tests a
lot of the time, this PR cleans up and simplifies (while testing the
same things):
1. Lots of tests were using threads without a need for it
2. Tests had hardcoded `time.sleep` calls which is never a good idea
3. An unclear abstraction was implemented without a real need
4. They weren't being ran on non-windows
5. The `client_connects_to_open_but_not_accepting_port` was not doing
what you wanted to test for, the `tcp_server` proc was returning, and
then `dial` was called, which meant that the server already closed
and you got a refusal error. Now it correctly listens without
accepting, which even results in a different error because the kernel
buffer would have buffered the send
2024-02-20 23:06:18 +01:00
Jeroen van Rijn
761a079789
Fix net.split_url
...
Resolves issue #2924
2023-11-09 16:56:54 +01:00
Jeroen van Rijn
81fe93127d
Make core:net test os.exit(1) on failure.
2023-09-30 22:47:49 +02:00
Jeroen van Rijn
aa5716d3f9
Allow any order of query strings in net.join_url tests.
2023-09-30 22:36:50 +02:00
Yoshihiro Tanaka
59e66ffe49
Add test for net.split_url
2023-05-14 12:15:20 +09:00
Yoshihiro Tanaka
418a0132d0
Join URL queries with &
2023-05-14 12:15:20 +09:00
Jeroen van Rijn
e254581a1b
Apply #shared_nil to Network_Error
2023-03-04 10:39:20 +01:00
Jeroen van Rijn
5c05038af0
Finish cleaning up core_net.
2023-03-03 17:26:44 +01:00
Colin Davidson
28f7f57247
manually start merging core_net
2023-03-01 07:58:30 -08:00