fix remaning tls data not sent

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-15 02:50:23 +02:00
parent fd4bfe604d
commit 573446689f

View File

@ -134,7 +134,7 @@ func (p *Payload) Handle(stt any) (protocol.Payload, *State) {
if st.HasMore() {
return p.sendNextChunk(st)
}
if st.HandshakeDone {
if st.Conn.writer.Len() == 0 && st.HandshakeDone {
return protocol.EmptyPayload{}, st
}
if len(st.Conn.OutboundData()) > 0 {