jetty / jetty/jetty.project

Firefox and Safari error out when download files greater than 1MB

Open
#14,082 3 comments 0 reactions 1 assignee Claimed by @lorban View on GitHub
Question
Dominant language
Java
Stars
4.1k
Forks
2k
Avg merge
3d 56m
Merged PRs (30d)
48

Description

**Jetty version(s)**

12.1.4

**Jetty Environment**

ee10

**HTTP version**

1.1

**Java version/vendor** `(use: java -version)`
openjdk version "25" 2025-09-16 LTS
OpenJDK Runtime Environment Corretto-25.0.0.36.2 (build 25+36-LTS)
OpenJDK 64-Bit Server VM Corretto-25.0.0.36.2 (build 25+36-LTS, mixed mode, sharing)

**OS type/version**
Linux, Debian, 13

**Description**

In my ee10 environment, I'm using a ResourceHandler; this has been working great, however, in Firefox and Safari, if I attempt to download a .ZIP file that is above 1MB (1209991 exactly), it fails -- Firefox provides the NS_ERROR_NET_PARTIAL_TRANSFER. There is no error message logged on the Jetty side.

**How to reproduce?**

I have tried setting the minimum mapped file size and using the ByteBufferPool.NON_POOLING to no avail. Unclear what other information would be needed -- it is a manually configured ResourceHandler.

Please advise.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.