Commit 6d7b1d1c9c1b4061770a2dbf8a8778beec737767
- Date: Tue Apr 15 21:32:15 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 6d7b1d1c9c1b4061770a2dbf8a8778beec737767
- Tree SHA1: c4d41055465f954742330b66a19d623f5eff0ece
decrease children count on invalid data as well
Commit diff
| |   |
| 110 | 110 | else |
| 111 | 111 | $stderr.puts "Invalid request: #{line}" |
| 112 | 112 | session.close |
| 113 | $children_active -= 1 |
| 114 | next |
| 113 | 115 | end |
| 114 | 116 | end |
| 115 | 117 | end |
| toggle raw diff |
--- a/script/git-daemon
+++ b/script/git-daemon
@@ -110,6 +110,8 @@ class Daemon
else
$stderr.puts "Invalid request: #{line}"
session.close
+ $children_active -= 1
+ next
end
end
end |