TRQ-1679 Don't call getpeername
AT the time getpeername is called, the socket may be closed so cached the socket address and port on accept and pass them to the im_request function.