Skip to content

use a net.UDPConn in fakeClosePacketConn #3998

@marten-seemann

Description

@marten-seemann

Caddy should use a *net.UDPConn instead of a net.PacketConn in

caddy/listeners.go

Lines 205 to 210 in e2940c8

type fakeClosePacketConn struct {
closed int32 // accessed atomically
usage *int32 // accessed atomically
key string
net.PacketConn
}

This will allow quic-go to set the receive buffer size, see https://caddy.community/t/udp-receive-buffer-size-quic/11244 and quic-go/quic-go#3024.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions