Closed wuhongzhi closed 5 years ago
check the context-length (may be null in chunked encoding) before invoke Long.parseLong to avoid a large amount of gabage in a bunch of http call.
jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
@wuhongzhi Please submit this patch in the upstream OpenJDK project at openjdk.java.net
check the context-length (may be null in chunked encoding) before invoke Long.parseLong to avoid a large amount of gabage in a bunch of http call.
jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java