Write timeout

added write_timeout option