You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Connect logger middleware does not log the client :remote-addr correctly under Node 0.10.6 when the Connection: Close header is set on a client request. This is logged correctly with Node 0.8.23. Sample code:
var connect = require('connect');
var app = connect()
.use(connect.logger('default'))
.use(function(req, res){
res.end('hello world\n');
})
.listen(3000);
The only solution is to get the remote address from the socket before the socket is closed. At the time the logger is invoked to format the line, it is too late.
The Connect logger middleware does not log the client :remote-addr correctly under Node 0.10.6 when the Connection: Close header is set on a client request. This is logged correctly with Node 0.8.23. Sample code:
Make two requests to the server:
The output from connect.logger shows the following from these requests:
In the request with the client Connection: close header set, the client's address (:remote-addr from the default logger format) is not displayed.
The text was updated successfully, but these errors were encountered: