improve IO handling: dup stdin only when it is a socket or pipe comming from the outside, use bigger buffer for output
reuse channel read buffer inside io3