MCPcopy
hub / github.com/MetaCubeX/mihomo / writeZeroChunk

Function writeZeroChunk

transport/snell/snell.go:138–143  ·  view source on GitHub ↗
(conn net.Conn)

Source from the content-addressed store, hash-verified

136}
137
138func writeZeroChunk(conn net.Conn) error {
139 if _, err := conn.Write(endSignal); err != nil {
140 return err
141 }
142 return nil
143}
144
145// HalfClose only works after the request negotiated the reuse command.
146func HalfClose(conn net.Conn) error {

Callers 2

HalfCloseFunction · 0.85
CloseWriteMethod · 0.85

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected