[jdk17u-dev] RFR: 8054022: HttpURLConnection timeouts with Expect: 100-Continue and no chunking

Sonia Zaldana Calles szaldana at openjdk.org
Tue Dec 12 15:58:47 UTC 2023


Hi all, 

This contains a backport of [4b02956d42c29ce32894f15411d3abe12b07dccd](https://github.com/openjdk/jdk/commit/4b02956d42c29ce32894f15411d3abe12b07dccd). 

Patch doesn't apply cleanly. The notable change is the call to `HttpClient#parseHTTP` due to a parameter mismatch and the copyright header year. See the diff between both patches for reference:


< @@ -1,5 +1,5 @@
<  /*
< - * Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
< + * Copyright (c) 1995, 2023, Oracle and/or its affiliates. All rights reserved.
<   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
<   *
<   * This code is free software; you can redistribute it and/or modify it
< @@ -1317,53 +1317,74 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
---
> @@ -1312,53 +1312,74 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
50c45
< -                http.parseHTTP(responses, pi, this);
---
> -                http.parseHTTP(responses, this);
73c68
< +            http.parseHTTP(responses, pi, this);
---
> +            http.parseHTTP(responses, this);


Testing: backport test and tier 1 pass.

-------------

Commit messages:
 - Backport 4b02956d42c29ce32894f15411d3abe12b07dccd

Changes: https://git.openjdk.org/jdk17u-dev/pull/2042/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2042&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8054022
  Stats: 505 lines in 2 files changed: 465 ins; 6 del; 34 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2042.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2042/head:pull/2042

PR: https://git.openjdk.org/jdk17u-dev/pull/2042


More information about the jdk-updates-dev mailing list