Meghan Denny
875604a42b
safety: a lot more exception checker progress ( #20956 )
2025-07-16 00:11:19 -07:00
Jarred Sumner
2e02d9de28
Use ReadableStream.prototype.* in tests instead of new Response(...).* ( #20937 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Alistair Smith <hi@alistair.sh >
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-14 00:47:53 -07:00
Meghan Denny
abaa69183b
write test in server.spec.ts better ( #20150 )
2025-06-02 23:03:05 -07:00
Meghan Denny
809992229f
node:net rework ( #18962 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-28 17:04:37 -07:00
Alistair Smith
6a363a38da
node:net compat: Invalid port test for .listen ( #19768 )
2025-05-21 11:56:17 -07:00
Jarred Sumner
14b439a115
Fix formatters not running in CI + delete unnecessary files ( #19433 )
2025-05-08 23:22:16 -07:00
pfg
00a3cbd977
more child-process ( #18688 )
...
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
2025-05-06 22:12:24 -07:00
Don Isaac
db5b915559
fix(node/net): better net.Server compatibility ( #17638 )
2025-02-24 19:24:10 -08:00
Don Isaac
61edc58362
feat(node/net): add SocketAddress ( #17154 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
2025-02-24 11:18:16 -08:00
Meghan Denny
e1cfea4925
node: fix the rest of test-process ( #16026 )
2025-01-06 14:30:36 -08:00
Ciro Spaciari
c1eba5886f
fix(net) signal should destroy the connection and propagate the error properly ( #15624 )
2024-12-06 16:10:33 -08:00
Ciro Spaciari
471fe7b886
fix(net/tls) fix reusePort, allowHalfOpen, FIN before reconnect ( #15452 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-11-27 21:30:30 -08:00
ippsav
910e479d29
Fix node:net not handling path in listen ( #15162 )
...
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2024-11-15 10:35:14 -08:00
Ciro Spaciari
873b0a7540
fix(socket) Support named pipes on Windows using forward slashes ( #15112 )
2024-11-12 16:09:43 -08:00
Ashcon Partovi
117e1b3883
bun run prettier (#14153 )
...
Co-authored-by: Electroid <Electroid@users.noreply.github.com >
2024-09-24 22:46:18 -07:00
Ciro Spaciari
b1ca81a10d
fix(node:net, node:tls) add named pipe support on node:net and node:tls modules ( #13838 )
2024-09-12 14:06:45 -07:00
Jarred Sumner
cd6785771e
run prettier and add back format action ( #13722 )
2024-09-03 21:32:52 -07:00
Jarred Sumner
2ffcccc5b4
Fixes #5591 ( #13541 )
2024-08-26 16:09:48 -07:00
Ciro Spaciari
f9af7be5ae
fix(net) make sure to always end the connection when destroy is called ( #13412 )
2024-08-19 15:55:05 -07:00
Ciro Spaciari
460d6edbda
fix(net/tls) we need to call end when we got FIN if allowHalfOpen is false ( #13212 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-08-13 00:24:37 -07:00
Meghan Denny
fc2c134bc6
test: rewrite "should call close" to use promise instead of done ( #12931 )
2024-07-29 19:05:44 -07:00
Georgijs
814440b1c0
Asynchronous DNS for sockets ( #11097 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Zack Radisic <zack@theradisic.com >
2024-05-18 05:11:21 -07:00
Meghan Denny
4efe026b5f
test: unify how all files create a temp directory ( #11057 )
...
Co-authored-by: nektro <nektro@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-14 20:19:35 -07:00
Meghan Denny
1589a1230d
Revert "Align arguments of connect() in node:tls and node:net to Node ( #10854 )" ( #10908 )
2024-05-07 20:33:42 -07:00
Henrik Storck
6217d78567
fix: Align arguments of connect() in node:tls and node:net to Node ( #10870 )
...
Co-authored-by: dave caruso <me@paperdave.net >
2024-05-07 15:03:38 -07:00
Georgijs
7bfcc2c9e3
support onread in net ( #10753 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-04 20:35:28 -07:00
Georgijs
ec6110e7e3
allow connecting a socket again after its connection was closed ( #10781 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
2024-05-02 20:36:58 -07:00
dave caruso
73a55cf075
windows: make more windows tests pass ( #9370 )
...
* run-eval.test.ts
* transpiler-cache.test.ts
* node net
* some open things
* a
* a
* yikes
* incredible
* run it back
* a
* this code is what i like to call, incorrect
* ok its all worng
* remove an assertion that is wrong again
* update test things and rebase
* performance test
* mark filesink with mkfifo as todo. see #8166
* hehe
* not done
* awa
* fs test pass
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-22 23:40:45 -07:00
Georgijs
a9a4bbcd24
remap 0.0.0.0 to localhost on windows ( #8770 )
2024-02-07 15:17:24 -08:00
Georgijs
2bd4fe578e
Make HTTP shutdowns more robust, speed up connection to localhost ( #8730 )
...
* http use arraylist to handle shutdowns
* on windows use wsaconnectbyname to speed up localhost connections
* use arbitrary port
* close socket on setsockopt error
* use null timeout in wsaconnectbyname
* Update src/http.zig
* fix zig compile
* update hostname on linux
* [autofix.ci] apply automated fixes
* fix getpeername failing after connecting with socket
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-07 12:19:41 -08:00
dave caruso
072f2f15ea
ci: run windows tests and also run them concurrently ( #7758 )
2024-01-12 17:02:20 -08:00
Hanaasagi
36d4f09d28
fix(socket): fix 0.0.0.0 binding address ( #7366 )
...
* fix(socket): fix `0.0.0.0` binding address
Close : #7355
* test
* test
---------
Co-authored-by: dave caruso <me@paperdave.net >
2024-01-09 13:48:56 -08:00
Jarred Sumner
70f344101b
Revert " feat(server): add server backlog parameter ( #7822 )" ( #7908 )
...
This reverts commit 411094b82d .
2023-12-28 23:44:27 -08:00
Malthe Borch
813afe6c53
Add 'listening' boolean property to 'net:Server' ( #7658 )
...
* Add 'listening' boolean property to 'net:Server'
* Convert to getter
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-28 14:20:41 -03:00
Hanaasagi
411094b82d
feat(server): add server backlog parameter ( #7822 )
...
* feat(server): add server backlog parameter
* add some tests
* Apply suggestions from code review
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
* fix test
* chore: fix style
---------
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2023-12-28 14:19:20 -03:00
Ciro Spaciari
c23579d66c
feat(http2) Client Support ( #6761 )
...
* init
* WIP fix post data/refactor
* make it compile again
* more things
* undo padding and continue + fix posting + update lshpack
* re-add fixes
* really simple tests + fixes
* add aborted event
* fix trailers
* add getDefaultSettings, getPackedSettings and getUnpackedSettings
* fix + fmt
* fixes
* fix enablePush o be boolean
* fix sendTrailers
* fmt
* fix goaway, fix some error messages
* oops
* revert some changes
* more reverts
* WIP
* get CMAKE building lspack + ping behavior
* remove files that should not be added anymore
* remove old out files
* remove old file
* fix header reduce
* bunch of fixes
* fix socket unref
* fix abort signal, rebase and fmt
* socket unref tests
* oops re-add cmake
* fix stream state
* more tests and fixes
* fixes and ping tests
* lshpack in Dockerfile
* just copy lshpack
* oops
* fix end
* wantTrailers
* encode/decode fixes + grpc
* channel credentials test
* rebase
* support h2c
* fix h2c
* fix h2c connect event + h2c tests
* 'copy ls-hpack
* ls-hpack build sh
* oops
* changing CMake + Docker
* add ps1 build for ls-hpack fix clean
* optimizations + fixes
* remove protect/unprotect from handlers
* more consistent errors
* fix error code
* oops
* add goaway tests
* oops uncoment tests
* better errors more tests
* add broken priority frame
* better memory leak, some fixes and less flask tests
* zig update .Big -> .big
* closer threshold + h2 fix
* remove log
* test should not be flask
* increase timeout on leak memory test
* windows build
* less flasky
* always 127.0.0.1
* [autofix.ci] apply automated fixes
* remove .call and use primordials
* apply socket fix
* fix win-build
* should properly mark inactive
* postgres fix
* increase deadline
* test tests
* high light deadline timeouts
* event loop test
* make memory leak test faster
* use buffer on payload test
* check for socket.data before use
* reduce iterations to see if timeout on mac intel
* fix assertions
* avoid localhost and simplify things
* refactor memory leak test
* Update src/js/node/tls.js
* fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cirospaciari <ciro.spaciai@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-17 18:14:54 -08:00
dave caruso
72bdd380af
add Socket.prototype; lol ( #5945 )
2023-09-29 15:42:06 -07:00
dave caruso
e8d58f24af
fix(runtime): emit node:net connect error event vs throw ( #5336 )
...
* fix(runtime): emit `node:net` connect error event vs throw
* oops
* finally
* ok
* we are good
2023-09-14 17:30:30 -07:00
dave caruso
6f8a393492
fix(node:net): emit close event on connection error ( #4336 )
...
* emit close event on connection error
* re-review
* add test
2023-09-05 16:59:40 -07:00
Ciro Spaciari
a7a01bd52f
[tls] add socket parameter, setServername and ALPNprotocols support ( #3457 )
...
* add socket parameter support
* refactor #socket
* add test and more fixs
* some fixes
* bump uws
* handlers fix
* more fixes
* fix node net and node tls tests
* fix duplicate port
* fix deinit on CallbackJobs
* cleanup
* add setImmediate repro
* add test to setImmediate
* this is necessary?
* fix prependOnce on native listener
* try to findout the error on nodemailer CI
* show error message
* Update bun.lockb
* prettier
* Use exact versions of packages
* add alpnProtocol support
* update
* emit error when connect fails on net.Socket
* format
* fix _write and cleanup
* fixup
* fix connect, add alpn test
* fix socket.io
* add socket parameter to TLSSocket
* add TLSSocket socket first parameter
* fixup and _start
* remove flask tests
* fmt
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-03 12:19:50 -07:00
Ciro Spaciari
63e2d78e76
[node:net] fix createConnection options passing ( #3101 )
...
* fixup createConnection
* fix comment
* fixup comment
* also fix it on tls
2023-05-28 13:20:32 -07:00
Ciro Spaciari
041231d7ca
fix node-net-test hang ( #2649 )
...
* fix tests
* fix fmt
* fix fmt
2023-04-13 15:14:58 -07:00
Jarred Sumner
aeb3bb949b
Upgrade WebKit ( #2643 )
...
* Missing export
* Regenerate builtins
* Fix crash in require()
* Various breaking JSC changes
* hopefully speed up C++ compilation a little
* Skip failing test fo rnow
* Update WebKit
* Add a comment
* Fix error in postinstall
* Update WebKit
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-04-13 04:11:12 -07:00
Ciro Spaciari
108c54134c
fix types and add more reliable tests ( #2621 )
2023-04-12 18:41:40 -07:00
Colin McDonnell
a5f92224b5
Fix types ( #2453 )
...
* WIP
* WIP
* WIP
* WIP
* Improve typechecking in type files
* Fix typechecking
* Update
* Update submodule
* CI for typechecking
* Add ci
* Update commands
* Format after build
* Dont use bunx
* Rename job
* Use nodemodules prettier
* Update workflow
* Use symlink
* Debug
* Debug
* Clean up and rename jobs
2023-03-22 15:01:01 -07:00
Jarred Sumner
9ce18245d1
Remove usages of port numbers in tests
2023-03-19 16:51:13 -07:00
Jarred Sumner
d9711c64eb
Make node-net tests less flaky
2023-03-18 16:35:49 -07:00
Jarred Sumner
e1921ff8c5
Fix node test harness
2023-03-14 15:59:55 -07:00
Ciro Spaciari
ac9f8c0e93
feat(net.createServer) and adds socket.connect IPC support ( #2337 )
...
* added net.Server
* fix fmt
* fix cast and move test
* fix node-net.tests.ts but breaks server data receive
* fix end and close only emitting when data or pipe was added
* fix socket starting paused
* add echo test
* fix fmt
* fix fmt
* on close if the socket is paused, keep paused until the user resumes it to match node behavior
* resume on connect
* fix getConnections, error on close, make _Handler private and create symbols for SocketServerHandlers
* add path support (IPC)
* fix unix domains support, add connect unix tests
* fix unix socket tests
* emit listening and listening error on next tick
* fix connection flask test
* try fix connect error on macos test
* merge connection and drop tests
* added exclusive option
* fix socket.zig fmt
* fix validation for options and add test for it
* pass prettier fmt
2023-03-13 16:42:35 -07:00
Ashcon Partovi
f7e4eb8369
Reorganize tests ( #2332 )
2023-03-07 12:22:34 -08:00