修复在连接读写优化模式下fastcgi无法正常工作的Bug

This commit is contained in:
GoEdgeLab
2023-03-06 10:33:54 +08:00
parent 39e020fe6b
commit 2ba63a85c1
6 changed files with 21 additions and 11 deletions

View File

@@ -56,14 +56,14 @@ func (this *ClientTLSConn) SetWriteDeadline(t time.Time) error {
return this.rawConn.SetWriteDeadline(t)
}
func (this *ClientTLSConn) SetIsWebsocket(isWebsocket bool) {
func (this *ClientTLSConn) SetIsPersistent(isPersistent bool) {
tlsConn, ok := this.rawConn.(*tls.Conn)
if ok {
var rawConn = tlsConn.NetConn()
if rawConn != nil {
clientConn, ok := rawConn.(*ClientConn)
if ok {
clientConn.SetIsWebsocket(isWebsocket)
clientConn.SetIsPersistent(isPersistent)
}
}
}