diff options
Diffstat (limited to 'src/ssl/test/runner/dtls.go')
-rw-r--r-- | src/ssl/test/runner/dtls.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ssl/test/runner/dtls.go b/src/ssl/test/runner/dtls.go index 42b3a655..c81955e3 100644 --- a/src/ssl/test/runner/dtls.go +++ b/src/ssl/test/runner/dtls.go @@ -248,7 +248,11 @@ func (c *Conn) dtlsWriteRecord(typ recordType, data []byte) (n int, err error) { fragOffset += fragLen n += fragLen } - if !isFinished && c.config.Bugs.MixCompleteMessageWithFragments { + shouldSendTwice := c.config.Bugs.MixCompleteMessageWithFragments + if isFinished { + shouldSendTwice = c.config.Bugs.RetransmitFinished + } + if shouldSendTwice { fragment := c.makeFragment(header, data, 0, len(data)) c.pendingFragments = append(c.pendingFragments, fragment) } |