{"comment":{"created_at":"2011-10-10T15:12:30Z","body":"@osi just for context, are you referring to this: https://github.com/joewalnes/webbit/blob/8698b98d9491d710a8b0022b19d9568481e647d9/src/main/java/org/webbitserver/handler/logging/SimpleLogSink.java#L194 ?\r\n\r\nA hacky way around it could be to launch a separate thread which calls getHostName() and then returns the value it finds (or doesn't after timeout). The problem with this ends up being the wait time, which will affect how logs are ordered if there is any significant delay.\r\n\r\nI'm not a networking expert, so I'm open to hearing/learning about better alternatives to this.","updated_at":"2011-10-10T15:12:30Z","url":"https://api.github.com/repos/joewalnes/webbit/issues/comments/2348301","id":2348301,"user":{"avatar_url":"https://secure.gravatar.com/avatar/47cc696e78f18a43162501c40b0a3fc8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/KushalP","id":138382,"login":"KushalP"}},"action":"created","issue":{"number":39,"created_at":"2011-10-10T14:38:44Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"SimpleLogSink performs a DNS when formatting log entries. \r\n\r\nIf the examples are following, using a LogginHandler with a SimpleLogSink, all of a sudden there's a blocking DNS request occurring on the main I/O thread.\r\n\r\nBy default, SimpleLogSink should not perform DNS resolution when logging remote addresses.","comments":1,"title":"SimpleLogSink shouldn't perform DNS lookups","updated_at":"2011-10-10T15:12:30Z","url":"https://api.github.com/repos/joewalnes/webbit/issues/39","id":1864584,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/6a12550cdf7fe9a70c57f8d8e6d9be9e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/osi","id":19927,"login":"osi"},"html_url":"https://github.com/joewalnes/webbit/issues/39","labels":[],"state":"open"},"legacy":{"issue_id":1864584,"comment_id":2348301}}