Test fix for cocket close on 401
Fix issue where 401 results in a new socket

On a 401, the netty client uses a new socket for the authentication next
post.
clean up patch