Remove stray debug printf

This commit is contained in:
Laurence Withers 2019-07-17 16:30:20 +01:00
parent b6da0b4e48
commit b7b5dd55d0
1 changed files with 0 additions and 4 deletions

View File

@ -1,7 +1,6 @@
package htpack package htpack
import ( import (
"fmt"
"net" "net"
"net/http" "net/http"
"os" "os"
@ -223,10 +222,7 @@ func (h *Handler) sendfile(w http.ResponseWriter, data *packed.FileData) {
// · other error: sets breakErr // · other error: sets breakErr
var written int var written int
rawsock.Write(func(outfd uintptr) bool { rawsock.Write(func(outfd uintptr) bool {
fmt.Fprintf(os.Stderr, "[DEBUG] sendfile(%d, %d, %d, %d) = ",
outfd, h.f.Fd(), off, amt)
written, err = unix.Sendfile(int(outfd), int(h.f.Fd()), &off, amt) written, err = unix.Sendfile(int(outfd), int(h.f.Fd()), &off, amt)
fmt.Fprintf(os.Stderr, "(%d, %v); off now %d\n", written, err, off)
switch err { switch err {
case nil: case nil:
return true return true