Skip to content

Commit 42344a4

Browse files
committed
fix corruption
1 parent d1e1694 commit 42344a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/comm/comm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type Comm struct {
1818
func New(c net.Conn) Comm {
1919
c.SetReadDeadline(time.Now().Add(3 * time.Hour))
2020
c.SetDeadline(time.Now().Add(3 * time.Hour))
21-
c.SetWriteDeadline(time.Now().Add(3 * time.Hour))
21+
c.SetWriteDeadline(time.Now().Add(5 * time.Second))
2222
return Comm{c}
2323
}
2424

src/recipient/recipient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ func receive(forceSend int, serverAddress string, tcpPorts []string, isLocal boo
383383
defer wg.Done()
384384
for {
385385
// read from TCP connection
386-
message, _, _, err = tcpConnection.Read()
386+
message, _, _, err := tcpConnection.Read()
387387
// log.Debugf("message: %s", message)
388388
if err != nil {
389389
log.Error(err)

0 commit comments

Comments
 (0)