2
0

fix keepalive response

This commit is contained in:
Nikolay Pavlovich
2022-09-09 23:05:02 +03:00
parent 999166f7bd
commit 14c680a519
+4 -2
View File
@@ -485,8 +485,10 @@ func (rc *RecConn) connect() {
rc.dialErr = err
rc.isConnected = err == nil
rc.httpResp = httpResp
rc.keepAliveResponse = new(keepAliveResponse)
rc.keepAliveResponse.allowDataResponse = rc.AllowKeepAliveDataResponse
if rc.keepAliveResponse == nil {
rc.keepAliveResponse = new(keepAliveResponse)
rc.keepAliveResponse.allowDataResponse = rc.AllowKeepAliveDataResponse
}
rc.mu.Unlock()
if err == nil {