Jarred Sumner
0db90b2526
Implement isolated event loop for spawnSync ( #24436 )
2025-11-07 05:28:33 -08:00
Meghan Denny
f4404a55db
misc tidyings from another branch ( #24406 )
...
pulled out of https://github.com/oven-sh/bun/pull/21809
- brings the ASAN behavior on linux closer in sync with macos
- fixes some tests to also pass in node
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-05 15:28:28 -08:00
Ciro Spaciari
3395774c8c
improve(node:http): uncork after flushing headers to ensure data is sent immediately ( #23413 )
...
### What does this PR do?
Calls `uncork()` after flushing response headers to ensure data is sent
as soon as possible, improving responsiveness.
This behavior still works correctly even without the explicit `uncork()`
call, due to the deferred uncork logic implemented here:
6e3359dd16/packages/bun-uws/src/Loop.h (L57-L64)
A test already covers this scenario in
`test/js/node/test/parallel/test-http-flush-response-headers.js`.
### How did you verify your code works?
CI
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-09 22:56:49 -07:00
Ciro Spaciari
979b69b673
fix(CI) ( #23418 )
...
### What does this PR do?
fix tests failing because of example.com
### How did you verify your code works?
CI
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-09 19:11:08 -07:00
Meghan Denny
f19a1cc3a5
test: break up node-http.test.ts ( #23125 )
2025-09-30 17:25:17 -07:00
Ciro Spaciari
85271f9dd9
fix(node:http) allow CONNECT in node http/https servers ( #22756 )
...
### What does this PR do?
Fixes https://github.com/oven-sh/bun/issues/22755
Fixes https://github.com/oven-sh/bun/issues/19790
Fixes https://github.com/oven-sh/bun/issues/16372
### How did you verify your code works?
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-23 16:46:59 -07:00
Meghan Denny
cc4f840e8b
test: remove accidental uses of test.only ( #20097 )
2025-07-16 23:07:23 -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
Jarred Sumner
90e3d6c898
Fix flushHeaders streaming ( #20577 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2025-06-24 18:48:23 -07:00
Ciro Spaciari
0a0205be6e
compat(node:http) more ( #19527 )
...
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
Co-authored-by: 190n <ben@bun.sh >
2025-05-10 21:28:31 -07:00
Jarred Sumner
14b439a115
Fix formatters not running in CI + delete unnecessary files ( #19433 )
2025-05-08 23:22:16 -07:00
Ciro Spaciari
cb6abd2116
fix(node:http) proper send chunked encoding, dont send \r\b twice after headers are flushed ( #19344 )
2025-04-28 16:48:36 -07:00
Ciro Spaciari
59b2a60790
compat(node:http) more passing ( #19236 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: 190n <ben@bun.sh >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-04-24 19:26:55 -07:00
Ciro Spaciari
6029567ba4
fix(node:http) fix rejectNonStandardBodyWrites behavior ( #19019 )
2025-04-14 19:24:25 -07:00
Ciro Spaciari
e2ce3bd4ce
fix(node:http) http.request empty requests should not always be transfer-encoding: chunked ( #18649 )
2025-03-31 02:10:31 -07:00
Ciro Spaciari
7021c42cf2
fix(node:http) fix post regression ( #18599 )
...
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-03-29 01:50:26 -07:00
Ciro Spaciari
325acfc230
fix(node:http) fix regression where we throw ECONNRESET and/or ERR_STREAM_WRITE_AFTER_END after socket.end() ( #18539 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-03-27 18:27:19 -07:00
Ciro Spaciari
a548c2ec54
fix(node:http) properly signal server drain after draining the socket buffer ( #18479 )
2025-03-26 16:41:17 -07:00
Kai Tamkun
60acfb17f0
node:http compatibility (options.lookup) (#18395 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-03-24 23:49:02 -07:00
Kai Tamkun
f30ca39242
More node:http compatibility ( #18339 )
...
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2025-03-20 19:16:35 -07:00
pfg
74768449bc
disallow test() within test() ( #18203 )
2025-03-15 21:34:35 -07:00
Kai Tamkun
4a0e982bb2
node:http improvements ( #17093 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Pham Minh Triet <92496972+Nanome203@users.noreply.github.com >
Co-authored-by: snwy <snwy@snwy.me >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: cirospaciari <cirospaciari@users.noreply.github.com >
Co-authored-by: Ben Grant <ben@bun.sh >
2025-03-10 20:19:29 -07:00
Ciro Spaciari
50856459e6
fix(http) dont drop numeric headers ( #17769 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-02-28 20:15:49 -08:00
Ciro Spaciari
f4937678e4
fix(node:http/Bun.serve) Allow Strict-Transport-Security in http ( #17768 )
2025-02-27 11:27:07 -08:00
chloe caruso
78e52006c5
Rewrite internal Web Streams to use less memory ( #16860 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: pfg <pfg@pfg.pw >
2025-02-15 01:16:28 -08:00
Jarred Sumner
68ee83067e
Revert "Rewrite the internal Web Stream native bindings to use less m… ( #16795 )
2025-01-27 05:39:37 -08:00
Jarred Sumner
75a95aa5fa
Rewrite the internal Web Stream native bindings to use less memory ( #16349 )
2025-01-26 00:04:39 -08:00
Ciro Spaciari
6135b3dec9
fix(CI) deflaky node-http.test.ts ( #15625 )
2024-12-06 19:16:59 -08:00
Ciro Spaciari
dd5c40dab7
fix(node:http) fix node:http chunked encoding on server and add chunked encoding support on the client ( #15579 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-12-04 17:58:21 -08:00
Dennis Dudek
98bb5999a3
Fixed Responses to OPTIONS Requests ignore Body ( #15108 )
2024-11-18 17:55:50 -08:00
Meghan Denny
266e033d6f
node:https: fix prototype chain of Agent ( #15160 )
...
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2024-11-14 19:03:16 -08:00
Jarred Sumner
f005e8c057
Fix HTTP spec issues by upgrading uWS version ( #14853 )
2024-10-27 12:34:45 -07: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
dave caruso
c2c2048072
framework api: init / work in progress ( #13215 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-12 16:44:03 -07:00
Ciro Spaciari
2b50554596
fix(node:http) always set headersSent to true after end ( #13794 )
...
Co-authored-by: cirospaciari <cirospaciari@users.noreply.github.com >
2024-09-09 17:08:17 -07:00
Meghan Denny
8cd515f533
node:zlib: move deflate and gzip into native code ( #11770 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-06 18:49:19 -07:00
Ciro Spaciari
1011b44d78
fix(node:http) implement request.setTimeout and server.setTimeout ( #13772 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-06 17:52:38 -07:00
Meghan Denny
ed7741a662
node:https: provide proper Agent definition ( #11826 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-06 16:11:19 -07:00
Jarred Sumner
cd6785771e
run prettier and add back format action ( #13722 )
2024-09-03 21:32:52 -07:00
Ciro Spaciari
adb54f1849
fix(Server) handle requestIP after async call ( #13532 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-08-30 19:13:53 -07:00
Ciro Spaciari
8ace981fbc
fix(node:http/node:https) emit continue ( #13434 )
2024-08-20 17:10:21 -07:00
Ciro Spaciari
24dbef7713
fix(server) fix flushing ( #13207 )
2024-08-09 18:20:04 -07:00
Ciro Spaciari
c552cb40d1
fix(server/tls/streams) fix onReadFile, streams, avoid shutdown on fatal errors, ensure ssl loop data and server ref count refactor ( #12979 )
2024-08-03 01:41:18 -07:00
Ciro Spaciari
1c648063fa
fix(tls/socket/fetch) shutdown fix + ref counted context ( #12925 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-07-30 22:41:54 -07:00
Jarred Sumner
e5ac4f94fa
Handle errors in node:http better ( #12641 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-07-26 19:53:36 -07:00
David Stevens
177f3a8622
Fixes #12182 - update default port when server is created ( #12201 )
2024-07-23 11:07:38 -07:00
Ciro Spaciari
422c17d76c
fix(http) mark completed true ( #11926 )
2024-06-17 15:09:20 -07:00
Ludvig Hozman
ee30e8660c
feat(https/fetch): Support custom ca/cert/key in fetch ( #11322 )
...
Co-authored-by: Liz3 (Yann HN) <accs@liz3.net >
2024-06-11 10:36:32 -03:00
Jarred Sumner
323011980c
Add fuzzer-like test of methods ( #11436 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Zack Radisic <zack@theradisic.com >
2024-05-30 15:12:29 -07:00
Georgijs
370db08891
Replace Streams.Readable with a JS implementation ( #11332 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-28 18:49:59 -07:00