mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +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
|
end
|
||||||
|
|
||||||
function channel:request(request, response)
|
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
|
if not socket.write(self.__sock[1], request) then
|
||||||
close_channel_socket(self)
|
close_channel_socket(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user