Commit e6fb71d1 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: write only the remaining data on muxconn retry

parent 84541c67
......@@ -445,7 +445,7 @@ func (m *MuxConn) write(from muxPacketFrom, id uint32, dataType muxPacketType, p
n := 0
for n < len(p) {
var n2 int
n2, err = m.rwc.Write(p)
n2, err = m.rwc.Write(p[n:])
n += n2
if err != nil {
log.Printf("[ERR] %p: Stream %d (%s) write error: %s", m, id, from, err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment