I don't see why the connection needs to be reset here.  There's nothing in the HTTP or Basic Auth spec that requires this.