Closed ddossot closed 10 years ago
humm then we need some refactoring to get those values as soon as possible...
I don't think i can easily reproduce it, can you try to verify if this change fixes it? Thanks!
Night and day: the issue is gone as far as I can tell :joy_cat:
Thanks a lot :thumbsup:
With
Logger
using the default format and not immediate mode, I receive this kind of NPEs:for
204
no content type of responses.I may be wrong but it's as if an early disconnection of the remote client, makes
request.remoteAddress().getHostString()
returnnull
because the underlying Vert.x request has:which, in the case
conn
is already disconnected, isnull
.I've tried setting
immediate
totrue
and of course everything works fine.So I'm thinking maybe
Logger
should store more request contextual info that can be nullified so whenlog
is called, all the necessary info is still there.