Fix timeout and bufsize for hack with real_sendall method