fix RawSocketSender#connect()'s timeout and add test for the fix