Remove a socket.close after destroy + bump nim-eth for uTP fixes (#1604)
This commit is contained in:
parent
4b66f93274
commit
2de9c95770
|
@ -649,7 +649,10 @@ proc findContent*(p: PortalProtocol, dst: Node, contentKey: ByteList):
|
|||
else :
|
||||
debug "Socket read time-out",
|
||||
socketKey = socket.socketKey
|
||||
socket.close()
|
||||
# Note: This might look a bit strange, be not doing a socket.close()
|
||||
# here as this is already done internally. utp_socket `checkTimeouts`
|
||||
# already does a socket.destroy() on timeout. Might want to change the
|
||||
# API on this later though.
|
||||
return err("Reading data from socket timed out, content request failed")
|
||||
except CancelledError as exc:
|
||||
# even though we already installed cancelCallback on readFut, it is worth
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit c608426d03167ff44a90ab6864c3b57eddb5512d
|
||||
Subproject commit 6dacb2ca5ce4e5528924f56c87620f38e1d0c0d4
|
Loading…
Reference in New Issue