Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-05-22 | chore(cli): One Rust test per JS and Node unit test file (#19199) | Matt Mastracci | |
This runs our `js_unit_tests` and `node_unit_tests` in parallel, one rust test per JS unit test file. Some of our JS tests don't like running in parallel due to port requirements, so this also makes those use a specific port-per-file. This does not attempt to make the node-compat tests work. | |||
2023-03-20 | feat(ext/net): Add multicasting APIs to DatagramConn (#10706) (#17811) | Sam Gwilym | |
2023-01-02 | chore: update copyright year to 2023 (#17247) | David Sherret | |
Yearly tradition of creating extra noise in git. | |||
2022-12-28 | feat(unstable): Add Deno.Conn.ref()/unref() (#17170) | Bartek Iwańczuk | |
This commit adds "Deno.Conn.ref()" and "Deno.Conn.unref()" methods. These methods can be used to make connection block or not block the event loop from finishing. Refing/unrefing only influences "read" operations - ie. scheduling writes to a connection _do_ keep event loop alive. Required for https://github.com/denoland/deno/issues/16710 | |||
2022-12-02 | chore: fix flaky netListenUnrefAndRef (#16892) | David Sherret | |
Closes #16890 | |||
2022-10-26 | feat(ext/net): reusePort for TCP on Linux (#16398) | Luca Casonato | |
2022-10-24 | feat(ext/net): add reuseAddress option for UDP (#13849) | Gianluca Oldani | |
This commit adds a `reuseAddress` option for UDP sockets. When this option is enabled, one can listen on an address even though it is already being listened on from a different process or thread. The new socket will steal the address from the existing socket. On Windows and Linux this uses the `SO_REUSEADDR` option, while on other Unixes this is done with `SO_REUSEPORT`. This behavior aligns with what libuv does. TCP sockets still unconditionally set the `SO_REUSEADDR` flag - this behavior matches Node.js and Go. This PR does not change this behaviour. Co-authored-by: Luca Casonato <hello@lcas.dev> | |||
2022-10-24 | fix(ext/net): don't remove sockets on unix listen (#16394) | Luca Casonato | |
When listening on a UNIX socket path, Deno currently tries to unlink this path prior to actually listening. The implementation of this behaviour is VERY racy, involves 2 additional syscalls, and does not match the behaviour of any other runtime (Node.js, Go, Rust, etc). This commit removes this behaviour. If a user wants to listen on an existing socket, they must now unlink the file themselves prior to listening. This change in behaviour only impacts --unstable APIs, so it is not a breaking change. | |||
2022-09-19 | refactor: move out test files from root testdata directory into sub ↵ | David Sherret | |
directories (#15949) | |||
2022-03-23 | feat(unstable): add ref/unref to Listener (#13961) | Yoshiya Hinosawa | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-03-20 | fix: actually don't inherit runtime permissions (#14024) | Luca Casonato | |
2022-02-16 | tests: deflake a bunch of net related tests (#13685) | Luca Casonato | |
2022-02-15 | feat(runtime): web streams in fs & net APIs (#13615) | Luca Casonato | |
This commit adds `readable` and `writable` properties to `Deno.File` and `Deno.Conn`. This makes it very simple to use files and network sockets with fetch or the native HTTP server. | |||
2022-01-31 | feat(ext/net): Add Conn.setNoDelay and Conn.setKeepAlive (#13103) | Yosi Pramajaya | |
2022-01-20 | chore: update copyright year (#13434) | Yoshiya Hinosawa | |
2021-12-14 | fix(ext/net): make unix and tcp identical on close (#13075) | Ben Noordhuis | |
std/http/server knows how to handle "Listener has been closed" exceptions but not "operation canceled" errors. Make "unix" listen sockets throw the same exception as "tcp" listen sockets when the socket is closed and has a pending accept operation. There is still a discrepancy when multiple accept requests are posted but that's probably a less visible issue and something for another day. Fixes #13033 | |||
2021-11-29 | feat(ext/net): enable sending to broadcast address (#12860) | Michael Busby | |
You can now send UDP datagrams to the broadcast address. | |||
2021-11-23 | refactor: remove "unitTest" wrapper from cli/tests/unit (#12750) | Bartek Iwańczuk | |
2021-10-17 | fix(core): poll async ops eagerly (#12385) | Bert Belder | |
Currently all async ops are polled lazily, which means that op initialization code is postponed until control is yielded to the event loop. This has some weird consequences, e.g. ```js let listener = Deno.listen(...); let conn_promise = listener.accept(); listener.close(); // `BadResource` is thrown. A reasonable error would be `Interrupted`. let conn = await conn_promise; ``` JavaScript promises are expected to be eagerly evaluated. This patch makes ops actually do that. | |||
2021-10-02 | fix(ext/net): should not panic when listening to unix abstract address (#12300) | Ahab | |
2021-09-23 | test(cli): align unit test permissions with runtime test permissions (#12189) | Casper Beyer | |
2021-09-22 | chore: replace calls to assertThrowsAsync with assertRejects (#12176) | Casper Beyer | |
2021-08-25 | chore(tests): improve unit tests using `deferred` (#11842) | David Sherret | |
2021-08-16 | chore(cli/tests): disable flaky test on macos ci (#11726) | Ben Noordhuis | |
Refs #11580. | |||
2021-08-05 | refactor(cli/tests): remove unnecessary void return types (#11577) | Leo K | |
2021-08-04 | chore: refactor `netHangsOnClose` test to not use `deferred` (#11585) | David Sherret | |
2021-07-31 | chore: fix failing netTcpListenCloseWhileIterating test on some machines ↵ | David Sherret | |
(#11552) | |||
2021-06-25 | test(cli): refactor the usages of delay (#11098) | Yoshiya Hinosawa | |
This PR refactors the usages of delay utility in js unit testing. The same utiliy is defined in several places with different names. This PR replaces those usages with the one provided in std/async/delay.ts to improve the readability and consistency of test code. | |||
2021-04-20 | revert: Conn type changes in #10012 and #10061 (#10255) | Kitson Kelly | |
Fixes #10200 (again) This reverts commit 9c7c9a35c12625bd4793c21539391d6b08d17e73 and a8057e3e06962a8d7c6330a085704bb4493eed04. | |||
2021-04-13 | feat(cli/dts): stricter typings for Listener & Conn (#10012) | crowlKats | |
2021-04-09 | chore: upgrade dependencies (#10094) | Bartek Iwańczuk | |
This commit upgrades: - swc_ecmascript - swc_bundler - deno_doc - deno_lint - dprint-plugin-typescript | |||
2021-01-25 | Revert "tests: enable wpt for url (#9046)" (#9264) | Luca Casonato | |
This reverts commit 66e99d349b31f5cd30b868d80ebdab6ba749fd96. | |||
2021-01-24 | tests: enable wpt for url (#9046) | Luca Casonato | |
2021-01-19 | fix(cli): actually stabilize Deno.shutdown() (#9181) | Bert Belder | |
2021-01-11 | chore: update copyright to 2021 (#9092) | Yusuke Tanaka | |
2020-12-16 | refactor: rewrite ops to use ResourceTable2 (#8512) | Bartek Iwańczuk | |
This commit migrates all ops to use new resource table and "AsyncRefCell". Old implementation of resource table was completely removed and all code referencing it was updated to use new system. | |||
2020-11-27 | test(cli): fix brittle network permission test (#8526) | William Perron | |
2020-11-27 | fix(cli/ops/net): add write permissions for unixpackets datagrams & unix ↵ | William Perron | |
socket (#8511) Fixes #7781 | |||
2020-11-26 | refactor(cli/tests): replace createResolvable with deferred (#8507) | crowlKats | |
2020-11-24 | feat(cli): update to TypeScript 4.1 (#7573) | Kitson Kelly | |
2020-09-27 | fix: net listen crashes on explicit undefined hostname (#7706) | Giorgi Rostomashvili | |
2020-09-27 | feat(fmt): Sort named import and export specifiers (#7711) | David Sherret | |
2020-07-14 | Use dprint for internal formatting (#6682) | David Sherret | |
2020-06-25 | refactor(cli/tests/unit) to use assertThrows (#6459) | Casper Beyer | |
2020-06-15 | unixpacket should also return byte length on send (#6291) | Peter Evers | |
2020-06-13 | fix: DatagramConn.send should return bytes sent (#6265) | Kermit Xuan | |
2020-06-10 | fix udp BorrowMutError (#6221) | Ryan Dahl | |
2020-06-08 | feat(cli/js/net): make rid on listener public (#5571) | Peter Indiola | |
2020-05-20 | move js unit tests to cli/tests (#5678) | Ryan Dahl | |