fixed fastrouter nodes stats

This commit is contained in:
roberto@maverick64
2011-06-30 13:00:14 +02:00
parent 5024368854
commit 19c567cef3
+4 -2
View File
@@ -513,7 +513,8 @@ void fastrouter_loop() {
iov[1].iov_len = fr_session->uh.pktsize;
// increment node requests counter
fr_session->un->requests++;
if (fr_session->un)
fr_session->un->requests++;
// fd passing: PERFORMANCE EXTREME BOOST !!!
if (fr_session->pass_fd && !uwsgi.no_fd_passing) {
@@ -572,7 +573,8 @@ void fastrouter_loop() {
}
// update transfer statistics
fr_session->un->transferred += len;
if (fr_session->un)
fr_session->un->transferred += len;
}
// body from client
else if (interesting_fd == fr_session->fd) {