diff options
Diffstat (limited to 'xmake/modules/private/service/client.lua')
| -rw-r--r-- | xmake/modules/private/service/client.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xmake/modules/private/service/client.lua b/xmake/modules/private/service/client.lua index 92330fec4..4eb18d1a1 100644 --- a/xmake/modules/private/service/client.lua +++ b/xmake/modules/private/service/client.lua @@ -31,12 +31,18 @@ local client = client or object() function client:init() -- init timeout - self._TIMEOUT = config.get("timeout") or -1 + self._SEND_TIMEOUT = config.get("send_timeout") or -1 + self._RECV_TIMEOUT = config.get("recv_timeout") or -1 end --- get timeout -function client:timeout() - return self._TIMEOUT +-- get send timeout +function client:send_timeout() + return self._SEND_TIMEOUT +end + +-- get recv timeout +function client:recv_timeout() + return self._RECV_TIMEOUT end -- parse host address |
