Skip to content

Log a warning about non-consumed HTTP stream in case of an error #439

@slvrtrn

Description

@slvrtrn

The code like this will eventually throw a timeout error, cause the stream is not consumed:

const client = createClient()
client.exec({ query: 'SELECT 42' })

Perhaps we can look at stream.readableEnded when we log an error in the connection layer, so it could be a hint to the user about dangling streams in their app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions