You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some case the Facebook fix for calculate Curl headers (affected version) in FacebookCurlHttpClient does not fix all cases (according my logs and I got error 601 randomly), so I've changed code of fixing header size:
privatefunctiongetHeaderSize() {
$headerSize = self::$facebookCurl->getinfo( CURLINFO_HEADER_SIZE );
// This corrects a Curl bug where header size does not account// for additional Proxy headers.if ( self::needsCurlProxyFix() ) {
if ( preg_match( '/Content-Length: (\d+)/', $this->rawResponse, $m ) ) {
$headerSize = mb_strlen( $this->rawResponse ) - $m[ 1 ];
}
elseif ( stripos( $this->rawResponse, self::CONNECTION_ESTABLISHED ) !== false ) {
$headerSize += mb_strlen( self::CONNECTION_ESTABLISHED );
}
}
return$headerSize;
}
In some case the Facebook fix for calculate Curl headers (affected version) in FacebookCurlHttpClient does not fix all cases (according my logs and I got error 601 randomly), so I've changed code of fixing header size:
And that error 601 does not occurred anymore.