Skip to content

http client doesn't buffer requests #1996

@dadkins

Description

@dadkins
Each line of the request ends up getting sent in its own TCP packet instead of sending
them all in one TCP packet.

What steps will reproduce the problem?

package main

import (
        "http"
)

func main() {
        _, err := http.DefaultClient.Get("http://www.google.com/";)
    if err != nil {
                panic(err.String())
        }
}

Observe output with
% tcpdump -A -s 0 dst port 80

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions