Projects STRLCPY dnstt Commits 05444dcb
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    dnstt-client/main.go
    skipped 90 lines
    91 91   go func() {
    92 92   defer wg.Done()
    93 93   _, err := io.Copy(stream, local)
     94 + if err == io.EOF {
     95 + // smux Stream.Write may return io.EOF.
     96 + err = nil
     97 + }
    94 98   if err != nil {
    95 99   log.Printf("stream %08x:%d copy stream←local: %v\n", conv, stream.ID(), err)
    96 100   }
    skipped 214 lines
  • ■ ■ ■ ■ ■ ■
    dnstt-server/main.go
    skipped 192 lines
    193 193   go func() {
    194 194   defer wg.Done()
    195 195   _, err := io.Copy(stream, conn)
     196 + if err == io.EOF {
     197 + // smux Stream.Write may return io.EOF.
     198 + err = nil
     199 + }
    196 200   if err != nil {
    197 201   log.Printf("stream %08x:%d copy stream←upstream: %v\n", conv, stream.ID(), err)
    198 202   }
    skipped 692 lines
Please wait...
Page is in error, reload to recover