We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6b9f1 commit 29dfd0aCopy full SHA for 29dfd0a
simpleclient_httpserver/src/main/java/io/prometheus/client/exporter/HTTPServer.java
@@ -36,6 +36,17 @@
36
* </pre>
37
* */
38
public class HTTPServer {
39
+
40
+ static {
41
+ if (!System.getProperties().containsKey("sun.net.httpserver.maxReqTime")) {
42
+ System.setProperty("sun.net.httpserver.maxReqTime", "60");
43
+ }
44
45
+ if (!System.getProperties().containsKey("sun.net.httpserver.maxRspTime")) {
46
+ System.setProperty("sun.net.httpserver.maxRspTime", "600");
47
48
49
50
private static class LocalByteArray extends ThreadLocal<ByteArrayOutputStream> {
51
@Override
52
protected ByteArrayOutputStream initialValue()
@@ -256,4 +267,3 @@ public int getPort() {
256
267
return server.getAddress().getPort();
257
268
}
258
269
259
-
0 commit comments