mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-05 22:23:18 -04:00
packer/rpc: ignore non-existent streams in muxconn
This commit is contained in:
@@ -315,6 +315,13 @@ func (m *MuxConn) loop() {
|
||||
panic(fmt.Sprintf("Unknown stream direction: %d", from))
|
||||
}
|
||||
|
||||
if stream == nil && packetType != muxPacketSyn {
|
||||
log.Printf(
|
||||
"[WARN] %p: Non-existent stream %d (%s) received packer %d",
|
||||
m, id, from, packetType)
|
||||
continue
|
||||
}
|
||||
|
||||
//log.Printf("[TRACE] %p: Stream %d (%s) received packet %d", m, id, from, packetType)
|
||||
switch packetType {
|
||||
case muxPacketSyn:
|
||||
|
||||
Reference in New Issue
Block a user