Skip to content

Commit

Permalink
Pull request #476: ROCKSOLID-6614 Added a fix for a memory leak in we…
Browse files Browse the repository at this point in the history
…b service receiver

Merge in MC/connect from bugfix/ROCKSOLID-6614-memory-leak-in-web-service-listener to development

* commit 'e06b2f430baa073a1a4e80f7196d949efa3b07db':
  ROCKSOLID-6614 Added a fix for a memory leak in web service receiver
  • Loading branch information
narupley committed Oct 22, 2021
2 parents 6ee37a4 + e06b2f4 commit 035f6ae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/src/com/mirth/connect/connectors/ws/WebServiceReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@ public void onStart() throws ConnectorTaskException {
java.util.logging.Logger.getLogger("javax.enterprise.resource.webservices.jaxws.server").setLevel(java.util.logging.Level.OFF);

try {
try {
if (System.getProperty("sun.net.httpserver.maxReqTime") == null) {
System.setProperty("sun.net.httpserver.maxReqTime", "60");
}

if (System.getProperty("sun.net.httpserver.maxRspTime") == null) {
System.setProperty("sun.net.httpserver.maxRspTime", "60");
}
} catch (Exception e) {
logger.error("Failed to set properties sun.net.httpserver.maxReqTime and sun.net.httpserver.maxRspTime", e);
}
configuration.configureReceiver(this);
server.bind(new InetSocketAddress(host, port), DEFAULT_BACKLOG);
} catch (Exception e) {
Expand Down

1 comment on commit 035f6ae

@jonbartels
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addresses #4657

Please sign in to comment.