Skip to content

Commit 2390024

Browse files
committed
systemd support for debian/rules
1 parent 94bd79e commit 2390024

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ override_dh_auto_install:
1919
override_dh_auto_test:
2020

2121
%:
22-
dh $@ --buildsystem=golang --with=golang
22+
dh $@ --buildsystem=golang --with=golang --with=systemd

src/socket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (conn *Conn) Read(b []byte) (n int, err error) {
103103
return n,nil
104104
}
105105

106-
if nerr,ok := err.(net.Error); !ok || !nerr.Timeout() {
106+
if nerr,ok := err.(net.Error); !ok || !(nerr.Timeout() && nerr.Temporary()) {
107107
return
108108
}
109109
}

0 commit comments

Comments
 (0)