fix issue #57. record address of http connection asap.