mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-30 20:51:41 +00:00 
			
		
		
		
	Revert "Merge branch 'bugfix/fix_ws_handle_big_messages_error_v4.3' into 'release/v4.3'"
This reverts commitde8c6aaa8d, reversing changes made toab452839ed.
This commit is contained in:
		| @@ -332,16 +332,10 @@ esp_err_t httpd_ws_recv_frame(httpd_req_t *req, httpd_ws_frame_t *frame, size_t | ||||
|         return ESP_FAIL; | ||||
|     } | ||||
|  | ||||
|     int read_len = 0, left_len = frame->len; | ||||
|     while (left_len > 0) { | ||||
|         if ((read_len = httpd_recv_with_opt(req, (char *)frame->payload + read_len, left_len, false)) <= 0) { | ||||
|     if (httpd_recv_with_opt(req, (char *)frame->payload, frame->len, false) <= 0) { | ||||
|         ESP_LOGW(TAG, LOG_FMT("Failed to receive payload")); | ||||
|         return ESP_FAIL; | ||||
|     } | ||||
|         if (left_len -= read_len) { | ||||
|             ESP_LOGD(TAG, "recv data length is less than the data length we want. Read again!"); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /* Unmask payload */ | ||||
|     httpd_ws_unmask_payload(frame->payload, frame->len, mask_key); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 yuanjm
					yuanjm