Skip to content

Commit

Permalink
Clearing replyData after json-String creation, prevents locking memor…
Browse files Browse the repository at this point in the history
…y until client disconnects
  • Loading branch information
bashdi authored and ThePrez committed Dec 26, 2024
1 parent 44eaf76 commit a367e80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/github/ibm/mapepire/ClientRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ private static String getErrorStringFromException(Throwable _e) {
protected void sendreply() throws UnsupportedEncodingException, IOException {
final Gson l = new GsonBuilder().serializeNulls().create();
final String json = l.toJson(replyData);
replyData.clear();
m_io.sendResponse(json);
}
}

0 comments on commit a367e80

Please sign in to comment.