Permalink
Browse files

add garbage collect on keep-alive sockets

  • Loading branch information...
1 parent e6d1870 commit af4cb95f7214a19deb839881a13c5f88eb5504c8 @etrepum etrepum committed Nov 2, 2011
Showing with 6 additions and 0 deletions.
  1. +5 −0 CHANGES.md
  2. +1 −0 src/mochiweb_http.erl
View
@@ -1,3 +1,8 @@
+Version 2.3.1 released XXXX-XX-XX
+
+* Add a manual garbage collection between requests to avoid worst case behavior
+ on keep-alive sockets.
+
Version 2.3.0 released 2011-10-14
* Handle ssl_closed message in mochiweb_http (#59)
View
@@ -133,6 +133,7 @@ after_response(Body, Req) ->
exit(normal);
false ->
Req:cleanup(),
+ erlang:garbage_collect(),
?MODULE:loop(Socket, Body)
end.

0 comments on commit af4cb95

Please sign in to comment.