Skip to content

Commit cc1bcf2

Browse files
committed
Merge pull request #3654 from 36952362/master
Resolve the issue of incomplete transmission of large SIP message over TLS protocol (cherry picked from commit 0c54ee7)
1 parent bdf6d7a commit cc1bcf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/proto_tls/proto_tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ static int proto_tls_send(const struct socket_info* send_sock,
618618
send_sock->last_real_ports->local = c->rcv.dst_port;
619619
send_sock->last_real_ports->remote = c->rcv.src_port;
620620

621-
tcp_conn_release(c, 0);
621+
tcp_conn_release(c, (rlen<len)?1:0);
622622
return rlen;
623623
con_release:
624624
sh_log(c->hist, TCP_SEND2MAIN, "send 1, (%d)", c->refcnt);

0 commit comments

Comments
 (0)