xutao 
							
						 
					 
					
						
						
							
						
						a453ca1f38 
					 
					
						
						
							
							fix(websocket): Prevent crash on network disconnect during send  
						
						... 
						
						
						
						When WiFi disconnects, `esp_websocket_client_task` continues polling
`esp_transport_poll_read()` with a default 1-second timeout.
If a timeout triggers `esp_websocket_client_abort_connection`,
certain resources are released.
However, if `esp_websocket_client_send_with_exact_opcode`
is still blocked at this point, it will cause a crash
when it times out and accesses the released handle.
This fix prevents potential crashes by ensuring proper
synchronization between abort and send functions.
Merges: https://github.com/espressif/esp-protocols/pull/629  
						
						
					 
					
						2024-10-31 11:33:26 +01:00 
						 
				 
			
				
					
						
							
							
								david-cermak 
							
						 
					 
					
						
						
							
						
						72f4f7c7a3 
					 
					
						
						
							
							Merge pull request  #683  from bryghtlabs-richard/fix/ws-mutex-delete  
						
						... 
						
						
						
						fix(websocket): use proper interface to delete semaphore 
						
						
					 
					
						2024-10-31 10:25:25 +01:00 
						 
				 
			
				
					
						
							
							
								david-cermak 
							
						 
					 
					
						
						
							
						
						a353702e04 
					 
					
						
						
							
							Merge pull request  #626  from euripedesrocha/websocket/fix_race_aborting_connection  
						
						... 
						
						
						
						Fix race condition when client set to not reconnect 
						
						
					 
					
						2024-10-31 08:21:52 +01:00 
						 
				 
			
				
					
						
							
							
								Richard Allen 
							
						 
					 
					
						
						
							
						
						991ac40d75 
					 
					
						
						
							
							fix(websocket): use proper interface to delete semaphore  
						
						... 
						
						
						
						On most implementations, including ESP-IDF FreeRTOS, vSemaphoreDelete()
is a macro that calls vQueueDelete(). But since the client semaphore is
created with xSemaphoreCreateRecursiveMutex(), delete it as a semaphore with vSemaphoreDelete(). 
						
						
					 
					
						2024-10-30 16:54:45 -05:00 
						 
				 
			
				
					
						
							
							
								david-cermak 
							
						 
					 
					
						
						
							
						
						bcab28c1b8 
					 
					
						
						
							
							Merge pull request  #633  from bryghtlabs-richard/feat/websocketBeginEnd  
						
						... 
						
						
						
						Feat/websocket: begin end thread events (IDFGH-13507) 
						
						
					 
					
						2024-08-20 16:41:52 +02:00 
						 
				 
			
				
					
						
							
							
								Euripedes Rocha 
							
						 
					 
					
						
						
							
						
						0d8f2a6d53 
					 
					
						
						
							
							fix(websocket): Move client to different state when disconnecting  
						
						... 
						
						
						
						If Websocket client is set to not reconnect, we move to Unknown state to
clean up the task after dispatching disconnected event. 
						
						
					 
					
						2024-08-19 12:52:37 +02:00 
						 
				 
			
				
					
						
							
							
								Richard Allen 
							
						 
					 
					
						
						
							
						
						d7fa24bc20 
					 
					
						
						
							
							feat(websocket): add events for begin/end thread  
						
						... 
						
						
						
						Add events to signal the start and end of the
websocket thread handler, only once each per client. 
						
						
					 
					
						2024-08-16 14:45:54 -05:00 
						 
				 
			
				
					
						
							
							
								Johan Stokking 
							
						 
					 
					
						
						
							
						
						234f579bd8 
					 
					
						
						
							
							feat(websocket): propagate esp_tls stack error and cert verify flags  
						
						
						
						
					 
					
						2024-08-15 21:14:08 +02:00 
						 
				 
			
				
					
						
							
							
								Jackson Ming Hu 
							
						 
					 
					
						
						
							
						
						9d4d5d2d49 
					 
					
						
						
							
							fix(websocket): don't get transport from the list if external transport is used  
						
						
						
						
					 
					
						2024-07-16 16:53:40 +10:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						906e447193 
					 
					
						
						
							
							Merge pull request  #573  from huming2207/feature/ws-transport-handle  
						
						... 
						
						
						
						feat(websocket): allow using external TCP transport handle (IDFGH-12825) 
						
						
					 
					
						2024-07-12 16:50:33 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						15ae280bbe 
					 
					
						
						
							
							Merge pull request  #608  from johanstokking/feature/websocket/tls_keepalive_ifname  
						
						... 
						
						
						
						feat(websocket): adding support for `if_name` when using WSS transport 
						
						
					 
					
						2024-07-10 12:37:27 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						e6f9fe2385 
					 
					
						
						
							
							Merge pull request  #583  from DCSBL/ws-client-common-name  
						
						... 
						
						
						
						feat(websocket_client): Add option to set and use cert_common_name in Websocket client (IDFGH-12926) 
						
						
					 
					
						2024-07-10 12:29:52 +04:00 
						 
				 
			
				
					
						
							
							
								Duco Sebel 
							
						 
					 
					
						
						
							
						
						3a6720ded6 
					 
					
						
						
							
							feat(websocket): Add option to set and use cert_common_name in Websocket client  
						
						
						
						
					 
					
						2024-07-10 09:19:48 +02:00 
						 
				 
			
				
					
						
							
							
								Johan Stokking 
							
						 
					 
					
						
						
							
						
						333a68936a 
					 
					
						
						
							
							feat(websocket): adding support for if_name when using WSS transport  
						
						
						
						
					 
					
						2024-07-05 13:34:03 +02:00 
						 
				 
			
				
					
						
							
							
								Erki Aring 
							
						 
					 
					
						
						
							
						
						bd9f062709 
					 
					
						
						
							
							feat(websocket): allow updating reconnect timeout for retry backoffs  
						
						
						
						
					 
					
						2024-07-02 21:07:50 +03:00 
						 
				 
			
				
					
						
							
							
								Jackson Ming Hu 
							
						 
					 
					
						
						
							
						
						83ea2876fc 
					 
					
						
						
							
							feat(websocket): allow using external tcp transport handle  
						
						
						
						
					 
					
						2024-06-21 14:47:03 +10:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						6393fcd79a 
					 
					
						
						
							
							fix(websocket): Fix locking issues of esp_websocket_client_send_with_exact_opcode API  
						
						... 
						
						
						
						Extended examples to cover more cases
Added new config CONFIG_ESP_WS_CLIENT_ENABLE_DYNAMIC_BUFFER for testing 
						
						
					 
					
						2024-05-17 12:37:10 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						c728eae5ea 
					 
					
						
						
							
							feat(websocket): adding support for keep_alive_enable when using WSS transport  
						
						
						
						
					 
					
						2024-04-22 10:57:36 +04:00 
						 
				 
			
				
					
						
							
							
								Johan Stokking 
							
						 
					 
					
						
						
							
						
						5b467cbf5c 
					 
					
						
						
							
							fix(websocket): Skip warn on zero timeout and auto reconnect is disabled  
						
						
						
						
					 
					
						2024-03-06 22:20:48 +01:00 
						 
				 
			
				
					
						
							
							
								David Cermak 
							
						 
					 
					
						
						
							
						
						9c54b72e1f 
					 
					
						
						
							
							fix(websocket): Fixed to use int return value in Tx functions  
						
						
						
						
					 
					
						2024-02-28 12:48:06 +01:00 
						 
				 
			
				
					
						
							
							
								David Cermak 
							
						 
					 
					
						
						
							
						
						16174470ee 
					 
					
						
						
							
							fix(websocket): Fixed Tx functions with DYNAMIC_BUFFER  
						
						
						
						
					 
					
						2024-02-28 12:47:59 +01:00 
						 
				 
			
				
					
						
							
							
								Eldar Hauge Torkelsen 
							
						 
					 
					
						
						
							
						
						d85311880d 
					 
					
						
						
							
							fix(websocket): Close websocket and dispatch event if server does not close within a reasonable amount of time.  
						
						
						
						
					 
					
						2024-01-29 08:01:39 +01:00 
						 
				 
			
				
					
						
							
							
								Eldar Hauge Torkelsen 
							
						 
					 
					
						
						
							
						
						2b092e0db4 
					 
					
						
						
							
							fix(websocket): Continue waiting for TCP connection to be closed  
						
						... 
						
						
						
						Prevents an issue where WEBSOCKET_EVENT_CLOSED is not sent after
websocket is closed. 
						
						
					 
					
						2024-01-23 14:58:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						774d1c75e6 
					 
					
						
						
							
							fix: continuation after FIN in websocket client ( #460 )  
						
						
						
						
					 
					
						2023-12-19 17:00:17 +01:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						f523b4dc84 
					 
					
						
						
							
							fix(websocket): consider failure if return value of esp_websocket_client_send_with_exact_opcode less than 0  
						
						
						
						
					 
					
						2023-11-28 16:40:10 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						ba33588008 
					 
					
						
						
							
							fix(websocket): fix of return value for esp_websocket_client_send_with_opcode API  
						
						
						
						
					 
					
						2023-11-28 12:37:31 +04:00 
						 
				 
			
				
					
						
							
							
								Sojan James 
							
						 
					 
					
						
						
							
						
						ac8f1de187 
					 
					
						
						
							
							fix(websocket): Return status code correctly on esp_websocket_client_send_with_opcode  
						
						
						
						
					 
					
						2023-10-24 17:23:57 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						39e972544f 
					 
					
						
						
							
							feat(websocket): Added new API esp_websocket_client_append_header  
						
						
						
						
					 
					
						2023-10-16 12:27:29 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						fae80e2f3f 
					 
					
						
						
							
							feat(websocket): Added new APIs to support fragmented messages transmission  
						
						... 
						
						
						
						Intoduced new APIs`esp_websocket_client_send_text_partial`,
            `esp_websocket_client_send_bin_partial`
            `esp_websocket_client_send_cont_mgs`
            `esp_websocket_client_send_fin`
            `esp_websocket_client_send_with_exact_opcode` 
						
						
					 
					
						2023-10-03 18:43:58 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						a22391ae2c 
					 
					
						
						
							
							feat(websocket): Added linux port for websocket  
						
						
						
						
					 
					
						2023-07-18 14:18:39 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						b5177cb23a 
					 
					
						
						
							
							fix(websocket): esp_websocket_client client allow sending 0 byte packets  
						
						
						
						
					 
					
						2023-06-01 15:32:18 +04:00 
						 
				 
			
				
					
						
							
							
								David Cermak 
							
						 
					 
					
						
						
							
						
						e085826dbb 
					 
					
						
						
							
							fix(websocket): Cleaned up printf/format warnings (-Wno-format)  
						
						
						
						
					 
					
						2023-05-17 07:35:21 +02:00 
						 
				 
			
				
					
						
							
							
								David Cermak 
							
						 
					 
					
						
						
							
						
						c974c14220 
					 
					
						
						
							
							fix(websocket): Added unit tests to CI + minor fix to pass it  
						
						
						
						
					 
					
						2023-05-17 07:14:48 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8bb207e9bb 
					 
					
						
						
							
							Fix weird error message spacings  
						
						
						
						
					 
					
						2023-03-23 11:44:51 +01:00 
						 
				 
			
				
					
						
							
							
								Steinbart Andreas (HAU-EDS) 
							
						 
					 
					
						
						
							
						
						d047ff569c 
					 
					
						
						
							
							esp_websocket_client:  
						
						... 
						
						
						
						* Error handling improved to show status code from server
* Added new API `esp_websocket_client_set_headers`
* Dispatches 'WEBSOCKET_EVENT_BEFORE_CONNECT' event before tcp connection 
						
						
					 
					
						2023-02-22 11:41:33 +04:00 
						 
				 
			
				
					
						
							
							
								AndriiFilippov 
							
						 
					 
					
						
						
							
						
						c6db3ea84c 
					 
					
						
						
							
							unite all tags under common structure  
						
						... 
						
						
						
						py test: update tags under common structure 
						
						
					 
					
						2023-02-17 14:27:34 +01:00 
						 
				 
			
				
					
						
							
							
								yuanjianmin 
							
						 
					 
					
						
						
							
						
						1b134486db 
					 
					
						
						
							
							websocket: Support HTTP basic authorization  
						
						
						
						
					 
					
						2023-02-09 15:09:40 +08:00 
						 
				 
			
				
					
						
							
							
								david-cermak 
							
						 
					 
					
						
						
							
						
						7ba1085e9f 
					 
					
						
						
							
							Merge pull request  #32  from 0xFEEDC0DE64/websocketclient-errormsg  
						
						... 
						
						
						
						Add websocket client error message string (IDFGH-7591) 
						
						
					 
					
						2023-02-08 16:11:38 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1d6888445d 
					 
					
						
						
							
							Add task_name config option  
						
						
						
						
					 
					
						2023-02-08 15:52:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d68624ec4f 
					 
					
						
						
							
							Add websocket error messages  
						
						
						
						
					 
					
						2023-02-08 15:35:01 +01:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						f9b47900f2 
					 
					
						
						
							
							websocket: Added new API esp_websocket_client_destroy_on_exit  
						
						
						
						
					 
					
						2023-01-24 22:29:09 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						3330b96b10 
					 
					
						
						
							
							websocket: make esp_websocket_client_send_with_opcode a public API  
						
						
						
						
					 
					
						2022-11-07 16:20:34 +04:00 
						 
				 
			
				
					
						
							
							
								Suren Gabrielyan 
							
						 
					 
					
						
						
							
						
						945bd17701 
					 
					
						
						
							
							CI: fixing the files to be complient with pre-commit hooks  
						
						
						
						
					 
					
						2022-10-17 18:16:52 +02:00 
						 
				 
			
				
					
						
							
							
								yuanjm 
							
						 
					 
					
						
						
							
						
						4cefcd3606 
					 
					
						
						
							
							feat(websocket): Optimize memory size for websocket client init  
						
						
						
						
					 
					
						2022-06-28 21:09:05 +08:00 
						 
				 
			
				
					
						
							
							
								Tomoyuki Sakurai 
							
						 
					 
					
						
						
							
						
						d56b5d90ea 
					 
					
						
						
							
							feat(websocket): allow users to attach CA bundle  
						
						... 
						
						
						
						with esp_transport_ssl_crt_bundle_attach(), it is not necessary to
include a specific certificate. other protocol clients, such as
esp_http_client, do the same.
fixes  #48  
						
						
					 
					
						2022-06-02 12:29:22 +07:00 
						 
				 
			
				
					
						
							
							
								david-cermak 
							
						 
					 
					
						
						
							
						
						38149c8d9b 
					 
					
						
						
							
							Merge pull request  #22  from 0xFEEDC0DE64/websocket_client_change_ping_interval  
						
						... 
						
						
						
						Add methods to allow get/set of websocket client ping interval (IDFGH-7096) 
						
						
					 
					
						2022-05-03 09:26:54 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9e37f537bd 
					 
					
						
						
							
							Implement websocket client connect error  
						
						
						
						
					 
					
						2022-04-26 11:15:57 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e55f54b69e 
					 
					
						
						
							
							Add methods to allow get/set of websocket client ping interval  
						
						
						
						
					 
					
						2022-04-26 11:06:20 +02:00 
						 
				 
			
				
					
						
							
							
								MacDue 
							
						 
					 
					
						
						
							
						
						b72a9ae710 
					 
					
						
						
							
							esp_websocket_client: Expose frame fin flag in websocket event  
						
						
						
						
					 
					
						2022-04-15 17:06:03 +01:00 
						 
				 
			
				
					
						
							
							
								Darian Leung 
							
						 
					 
					
						
						
							
						
						b3c777ad43 
					 
					
						
						
							
							freertos: Remove legacy data types  
						
						... 
						
						
						
						This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
* Original commit: espressif/esp-idf@57fd78f5ba  
						
						
					 
					
						2022-03-01 12:18:50 +04:00