Skip to content

AIOHTTP ConnectionResetError On Camera Close after 3.3.0 #14919

Closed
@mezz64

Description

Home Assistant release with the issue:

Latest Dev Docker Build - 6/10/18

Last working Home Assistant release (if known):
Any build prior to bumping aiohttp to version 3.3.0.

Operating environment (Hass.io/Docker/Windows/etc.):

Docker

Component/platform:

Main mjpeg camera platform and proxy camera platform were tested.

Description of problem:
On closing a stream from the mjpeg camera platform the below error is generated in the log. Functionality is as intended however with no odd behavior. The proxy platform is a little more troublesome in that the same error gets generated constantly multiple times per second when it is active.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

2018-06-10 22:04:53 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 398, in start
    await resp.prepare(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py", line 300, in prepare
    return await self._start(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py", line 605, in _start
    return await super()._start(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py", line 367, in _start
    await writer.write_headers(status_line, headers)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/http_writer.py", line 100, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/http_writer.py", line 57, in _write
    raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport

Additional information:

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions