Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 1.25 KB

lua_socket_send_timeout.md

File metadata and controls

35 lines (19 loc) · 1.25 KB

lua_socket_send_timeout

语法: lua_socket_send_timeout <time>

默认: lua_socket_send_timeout 60s

环境: http, server, location

该指令控制 TCP/unix-domain socket 对象的send方法默认超时时间,这个值可以被settimeout方法覆盖。

<time>参数可以是整数,后面可以跟着像s (秒), ms (毫秒), m (分钟)的单位可选项。 默认的时间单位是s,也就是"秒"。默认值是60s

该指令是在v0.5.0rc1版本第一次引入。

返回目录

English source:

lua_socket_send_timeout

syntax: lua_socket_send_timeout <time>

default: lua_socket_send_timeout 60s

context: http, server, location

Controls the default timeout value used in TCP/unix-domain socket object's send method and can be overridden by the settimeout method.

The <time> argument can be an integer, with an optional time unit, like s (second), ms (millisecond), m (minute). The default time unit is s, i.e., "second". The default setting is 60s.

This directive was first introduced in the v0.5.0rc1 release.

Back to TOC