forked from goodboy/tractor
1
0
Fork 0

Drop happy eyeballs inf delay

try_msgspec
Tyler Goodlet 2021-06-27 00:47:49 -04:00
parent 1a068add5d
commit 1c4d418f81
1 changed files with 1 additions and 4 deletions

View File

@ -2,7 +2,6 @@
Inter-process comms abstractions
"""
from functools import partial
import math
import struct
import typing
from typing import Any, Tuple, Optional
@ -49,9 +48,8 @@ class MsgpackTCPStream:
assert isinstance(rsockname, tuple)
self._raddr = rsockname[:2]
# start and seed first entry to read loop
# start first entry to read loop
self._agen = self._iter_packets()
# self._agen.asend(None) is None
self._send_lock = trio.StrictFIFOLock()
@ -225,7 +223,6 @@ class Channel:
stream = await trio.open_tcp_stream(
*destaddr,
happy_eyeballs_delay=math.inf,
**kwargs
)
self.msgstream = self.stream_serializer_type(stream)