Commit Graph

13482 Commits

Author SHA1 Message Date
Ciro Spaciari
c33fc879dc more 2025-09-04 17:10:18 -07:00
Ciro Spaciari
36a2fb6093 more 2025-09-04 17:10:04 -07:00
Ciro Spaciari
2560c08922 Merge branch 'ciro/fetch-upgrade' into ciro/fetch-upgrade-node-http 2025-09-04 16:37:10 -07:00
Ciro Spaciari
4f0d126d75 avoid chunked here 2025-09-04 16:36:54 -07:00
Ciro Spaciari
3a5c3ac657 ok 2025-09-04 15:53:31 -07:00
Ciro Spaciari
e782f9ebbd Merge branch 'ciro/fetch-upgrade' into ciro/fetch-upgrade-node-http 2025-09-04 15:45:14 -07:00
Ciro Spaciari
3a10be5191 ok 2025-09-04 15:45:06 -07:00
autofix-ci[bot]
b49e20c193 [autofix.ci] apply automated fixes 2025-09-04 22:40:13 +00:00
Ciro Spaciari
19491b9db3 minimal test 2025-09-04 15:38:49 -07:00
Ciro Spaciari
79bbada1ed linter 2025-09-04 15:27:35 -07:00
Ciro Spaciari
ccf021fab9 Merge branch 'ciro/fetch-upgrade' into ciro/fetch-upgrade-node-http 2025-09-04 15:22:02 -07:00
Ciro Spaciari
8df4827833 we need to close at some point 2025-09-04 15:21:53 -07:00
Ciro Spaciari
0609fa5122 dont break stuff 2025-09-04 15:21:53 -07:00
Ciro Spaciari
ed21db9414 opsie 2025-09-04 15:21:53 -07:00
Ciro Spaciari
8727416808 more generic 2025-09-04 15:21:53 -07:00
autofix-ci[bot]
c7f6623878 [autofix.ci] apply automated fixes 2025-09-04 15:21:53 -07:00
Ciro Spaciari
1503715c0e ok 2025-09-04 15:21:53 -07:00
Ciro Spaciari
4cbe315002 Merge branch 'ciro/fetch-upgrade' into ciro/fetch-upgrade-node-http 2025-09-04 15:21:38 -07:00
Ciro Spaciari
fbdde3a89c we need to close at some point 2025-09-04 15:21:11 -07:00
Meghan Denny
5b7fd9ed0e node:_http_server: implement Server.prototype.closeIdleConnections (#22234) 2025-09-04 15:18:31 -07:00
autofix-ci[bot]
ed037cece0 [autofix.ci] apply automated fixes 2025-09-04 22:14:29 +00:00
Ciro Spaciari
e2767b970d dont break stuff 2025-09-04 15:07:34 -07:00
Ciro Spaciari
68c5a293eb opsie 2025-09-04 15:07:34 -07:00
Ciro Spaciari
6b5e41a0b3 more generic 2025-09-04 15:07:34 -07:00
autofix-ci[bot]
50bc82a97e [autofix.ci] apply automated fixes 2025-09-04 15:07:34 -07:00
Ciro Spaciari
345666b194 ok 2025-09-04 15:07:34 -07:00
Ciro Spaciari
01785cf3b7 experiment 2025-09-04 15:06:20 -07:00
Jarred Sumner
ed9353f95e gitignore the sources text files (#22408)
### What does this PR do?

### How did you verify your code works?

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-04 14:59:35 -07:00
Jarred Sumner
4573b5b844 run prettier 2025-09-04 14:45:18 -07:00
Marko Vejnovic
5a75bcde13 (#19041): Enable connecting to different databases within Redis (#22385)
### What does this PR do?

Enable connecting to different databases for Redis.

### How did you verify your code works?

Unit tests were added.

### Credits

Thank you very much @HeyItsBATMAN for your original PR. I've made
extremely slight changes to your PR. I apologize for it taking so long
to review and merge your PR.

---------

Co-authored-by: Kai Niebes <kai.niebes@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-04 14:25:22 -07:00
Meghan Denny
afc5f50237 build: fix ZigSources.txt line endings (#22398) 2025-09-04 14:22:49 -07:00
autofix-ci[bot]
56f1d991cc [autofix.ci] apply automated fixes (attempt 3/3) 2025-09-04 20:05:33 +00:00
autofix-ci[bot]
0853c555b2 [autofix.ci] apply automated fixes (attempt 2/3) 2025-09-04 20:03:03 +00:00
autofix-ci[bot]
ae42b8f045 [autofix.ci] apply automated fixes 2025-09-04 20:01:32 +00:00
Ciro Spaciari
e5abcf45ef dont break stuff 2025-09-04 12:59:30 -07:00
autofix-ci[bot]
0e8f4ba114 [autofix.ci] apply automated fixes (attempt 3/3) 2025-09-04 19:31:15 +00:00
autofix-ci[bot]
efda53ea6f [autofix.ci] apply automated fixes (attempt 2/3) 2025-09-04 19:29:16 +00:00
autofix-ci[bot]
d561b17b46 [autofix.ci] apply automated fixes 2025-09-04 19:27:41 +00:00
Ciro Spaciari
1dc1d4795e opsie 2025-09-04 12:25:02 -07:00
autofix-ci[bot]
1cef7f29e9 [autofix.ci] apply automated fixes (attempt 3/3) 2025-09-04 17:44:24 +00:00
autofix-ci[bot]
c38d674cbf [autofix.ci] apply automated fixes (attempt 2/3) 2025-09-04 17:42:40 +00:00
autofix-ci[bot]
e75b9aa01b [autofix.ci] apply automated fixes 2025-09-04 17:40:37 +00:00
Ciro Spaciari
8ad5f0bb57 more generic 2025-09-04 10:37:51 -07:00
autofix-ci[bot]
f51aed3f40 [autofix.ci] apply automated fixes 2025-09-04 10:37:51 -07:00
Ciro Spaciari
b1990a484f ok 2025-09-04 10:37:51 -07:00
Meghan Denny
ca8d8065ec node: tidy http2 and add missing error codes 2025-09-03 22:17:57 -07:00
Zack Radisic
0bcb3137d3 Fix bundler assertion failure (#22387)
### What does this PR do?

Fixes "panic: Internal assertion failure: total_insertions (N) !=
output_files.items.len (N)"

Fixes #22151
2025-09-03 21:18:00 -07:00
Ciro Spaciari
b79bbfe289 fix(Bun.SQL) fix SSLRequest (#22378)
### What does this PR do?
Fixes https://github.com/oven-sh/bun/issues/22312
Fixes https://github.com/oven-sh/bun/issues/22313

The correct flow for TLS handshaking is:

Server sending
[Protocol::Handshake](https://dev.mysql.com/doc/dev/mysql-server/8.4.5/page_protocol_connection_phase_packets_protocol_handshake.html)
Client replying with
[Protocol::SSLRequest:](https://dev.mysql.com/doc/dev/mysql-server/8.4.5/page_protocol_connection_phase_packets_protocol_ssl_request.html)
The usual SSL exchange leading to establishing SSL connection
Client sends
[Protocol::HandshakeResponse:](https://dev.mysql.com/doc/dev/mysql-server/8.4.5/page_protocol_connection_phase_packets_protocol_handshake_response.html)

<img width="460" height="305" alt="Screenshot 2025-09-03 at 15 02 25"
src="https://github.com/user-attachments/assets/091bbc54-75bc-44ac-98b8-5996e8d69ed8"
/>

Source:
https://dev.mysql.com/doc/dev/mysql-server/8.4.5/page_protocol_connection_phase.html

### How did you verify your code works?
Tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-03 18:59:15 -07:00
robobun
72490281e5 fix: handle empty chunked gzip responses correctly (#22360)
## Summary
Fixes #18413 - Empty chunked gzip responses were causing `Decompression
error: ShortRead`

## The Issue
When a server sends an empty response with `Content-Encoding: gzip` and
`Transfer-Encoding: chunked`, Bun was throwing a `ShortRead` error. This
occurred because the code was checking if `avail_in == 0` (no input
data) and immediately returning an error, without attempting to
decompress what could be a valid empty gzip stream.

## The Fix
Instead of checking `avail_in == 0` before calling `inflate()`, we now:
1. Always call `inflate()` even when `avail_in == 0` 
2. Check the return code from `inflate()`
3. If it returns `BufError` with `avail_in == 0`, then we truly need
more data and return `ShortRead`
4. If it returns `StreamEnd`, it was a valid empty gzip stream and we
finish successfully

This approach correctly distinguishes between "no data yet" and "valid
empty gzip stream".

## Why This Works
- A valid empty gzip stream still has headers and trailers (~20 bytes)
- The zlib `inflate()` function can handle empty streams correctly  
- `BufError` with `avail_in == 0` specifically means "need more input
data"

## Test Plan
 Added regression test in `test/regression/issue/18413.test.ts`
covering:
- Empty chunked gzip response
- Empty non-chunked gzip response  
- Empty chunked response without gzip

 Verified all existing gzip-related tests still pass
 Tested with the original failing case from the issue

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-03 18:57:39 -07:00
Ciro Spaciari
60ab798991 fix(Bun.SQL) fix timers test and disable describeWithContainer on macos (#22382)
### What does this PR do?
Actually run the Timer/TimerZ tests in CI and disable
describeWithContainer in macos
### How did you verify your code works?
CI

---------

Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-03 17:36:03 -07:00