Skip to content

API Routes keep looping when Connection: Close Header has not been defined by client.Β #1591

@Devilspayback

Description

@Devilspayback

Describe the Bug

When connections are made to my api routes and the client does not explictely use a connection: close header my routes will start looping, as can be seen in the logs as in the actual logic being ran multiple times. Only way to stop the loop is to restart the API Service.

Steps To Reproduce

make connection to any route, without connection:close header

Expected Behavior

No looping in routes, Connection being closed when api has responded.

Screenshots

Image

Do not have the wireshark photo available at the moment, but it shows retries from the client side and 'RESET' flags which all stopped once the client has connection: close header.

Platform

  • OS: Windows 10,11
  • Browser: Chrome, Edge, Powershell
  • Versions:
    • Pode: 2.11.1
    • PowerShell: 5.1

Additional Context

I have configured connection:close header on the server, and I can confirm it is present in my packets on Wireshark, but this doesn't seem to help. I can not force clients to use connection:close which results in loops being started often when they connect.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions