Commit 311fb206 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: can write while MuxConn is in CloseWait state

parent a6299fc4
......@@ -430,7 +430,7 @@ func (s *Stream) Write(p []byte) (int, error) {
state := s.state
s.mu.Unlock()
if state != streamStateEstablished {
if state != streamStateEstablished && state != streamStateCloseWait {
return 0, fmt.Errorf("Stream %d in bad state to send: %d", s.id, state)
}
......
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