PHP cURL Recv failure: Connection was reset

I have listed two solutions of Baidu
1. Add the ban on https in curl. However, there is no response

.
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false);

2. Add

to the http.conf of apache
EnableSendfile off
EnableMMAP off

both methods are of no avail. I don"t grab a large number of pages. I just grab a search page. How could this happen?
my win server
here is my code:

    $url    = "http://www.baidu.com/s?wd=" . urlencode( "site:" . $input . $key );
    $data   = array();
    $header = array();
    $response = $this->doCurl( $url, $data, $header, 5 );
    
    public function doCurl( $url, $data = array(), $header = array(), $timeout = 30 ) {
        $ch = curl_init();
        curl_setopt( $ch, CURLOPT_URL, $url );
        curl_setopt( $ch, CURLOPT_HTTPHEADER, $header );
        curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
        curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
        curl_setopt( $ch, CURLOPT_TIMEOUT, $timeout );
        curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false);

        $response = curl_exec( $ch );
        if ( $error = curl_error( $ch ) ) {
            die( $error );
        }

        curl_close( $ch );

        return $response;
    }
Mar.04,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e43787-44a3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e43787-44a3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?