Giter Club home page Giter Club logo

jdk-httpurlconnection-bug's Introduction

Introduction

This project shows a bug in the java.net.HttpURLConnection class.

The HttpURLConnection class caps and mess up the body of a big HTTP POST. If you send a HTTP POST with a small body, it works, but if you send a HTTP POST with, for instance, 10k bytes on its body, it does not work.

How to run

Just do the command ./gradlew test and wait for the test results.

If you run it today (19/July/2021) in macOS, it will not work. The server will not receive correctly the bytes sent. If you do the same tests in Linux, it works.

Apparently, the problem happens exactly when BODY content has more than 65839 characters.

It happens in all the java versions I tested (8, 9, 10, 14, 16) under macOS, although, the same code works in Linux. I think it's a bug on it's core libs, written in C for macOS.

Bug report

Dear Java Developer, We have finished evaluating your report and have assigned it a Bug ID: JDK-8271187. The issue is visible on bugs.java.com at the following url JDK-8271187. To provide more information about this issue, click here.

jdk-httpurlconnection-bug's People

Contributors

edpichler avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.