send can fail silently when sending would block (EWOULDBLOCK return for send) (#18)
* try to use a pipe for communication * flush send buffer on the background thread * cleanup * linux fix / linux still use event fd for now * cleanup
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							dedbeb3eab
						
					
				
				
					commit
					08c2cdbf1d
				
			
							
								
								
									
										6
									
								
								ws/ws.h
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								ws/ws.h
									
									
									
									
									
								
							| @@ -24,9 +24,9 @@ namespace ix | ||||
|  | ||||
|     int ws_ping_pong_main(const std::string& url); | ||||
|  | ||||
|     int ws_echo_server_main(int port); | ||||
|  | ||||
|     int ws_echo_server_main(int port, const std::string& hostname); | ||||
|     int ws_broadcast_server_main(int port, const std::string& hostname); | ||||
|     int ws_transfer_main(int port, const std::string& hostname); | ||||
|  | ||||
|     int ws_chat_main(const std::string& url, | ||||
|                      const std::string& user); | ||||
| @@ -36,8 +36,6 @@ namespace ix | ||||
|     int ws_receive_main(const std::string& url, | ||||
|                         bool enablePerMessageDeflate); | ||||
|  | ||||
|     int ws_transfer_main(int port); | ||||
|  | ||||
|     int ws_send_main(const std::string& url, | ||||
|                      const std::string& path); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user