add invariant check to socks5_stream
#7785
+50
−19
Draft
socks5_stream
#7785