Skip to content

Commit c4ab106

Browse files
clean up
1 parent 8b99090 commit c4ab106

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

httpcore/_async/http11.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def __init__(
6868
our_role=h11.CLIENT,
6969
max_incomplete_event_size=self.MAX_INCOMPLETE_EVENT_SIZE,
7070
)
71-
# Assuming we were just connected
72-
self._network_stream_used_at = time.monotonic()
7371

7472
async def handle_async_request(self, request: Request) -> Response:
7573
if not self.can_handle_request(request.url.origin):
@@ -185,7 +183,6 @@ async def _send_event(
185183
bytes_to_send = self._h11_state.send(event)
186184
if bytes_to_send is not None:
187185
await self._network_stream.write(bytes_to_send, timeout=timeout)
188-
self._network_stream_used_at = time.monotonic()
189186

190187
# Receiving the response...
191188

@@ -237,7 +234,6 @@ async def _receive_event(
237234
data = await self._network_stream.read(
238235
self.READ_NUM_BYTES, timeout=timeout
239236
)
240-
self._network_stream_used_at = time.monotonic()
241237

242238
# If we feed this case through h11 we'll raise an exception like:
243239
#

httpcore/_sync/http11.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def __init__(
6868
our_role=h11.CLIENT,
6969
max_incomplete_event_size=self.MAX_INCOMPLETE_EVENT_SIZE,
7070
)
71-
# Assuming we were just connected
72-
self._network_stream_used_at = time.monotonic()
7371

7472
def handle_request(self, request: Request) -> Response:
7573
if not self.can_handle_request(request.url.origin):
@@ -185,7 +183,6 @@ def _send_event(
185183
bytes_to_send = self._h11_state.send(event)
186184
if bytes_to_send is not None:
187185
self._network_stream.write(bytes_to_send, timeout=timeout)
188-
self._network_stream_used_at = time.monotonic()
189186

190187
# Receiving the response...
191188

@@ -237,7 +234,6 @@ def _receive_event(
237234
data = self._network_stream.read(
238235
self.READ_NUM_BYTES, timeout=timeout
239236
)
240-
self._network_stream_used_at = time.monotonic()
241237

242238
# If we feed this case through h11 we'll raise an exception like:
243239
#

0 commit comments

Comments
 (0)