mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
socketchannel request only try connect once
This commit is contained in:
@@ -296,7 +296,7 @@ local function wait_for_response(self, response)
|
||||
end
|
||||
|
||||
function channel:request(request, response)
|
||||
assert(block_connect(self))
|
||||
assert(block_connect(self, true)) -- connect once
|
||||
|
||||
if not socket.write(self.__sock[1], request) then
|
||||
close_channel_socket(self)
|
||||
|
||||
Reference in New Issue
Block a user