Skip to content

Client DNS start/end events not fired #2841

Closed
@MykolaPolovyi

Description

Long story short

Unable to track dns timing via TraceConfig using client with TcpConnector, since None intead of traces arg passed to direct and proxy connections methods

    async def _create_connection(self, req, traces=None):
        """Create connection.

        Has same keyword arguments as BaseEventLoop.create_connection.
        """
        if req.proxy:
            _, proto = await self._create_proxy_connection(
                req,
                traces=None
            )
        else:
            _, proto = await self._create_direct_connection(
                req,
                traces=None
            )

        return proto

Expected behaviour

working DNS tracing with TCP

Actual behaviour

dns events missed

Your environment

aiohttp: 3.0.9
OS X

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions