Fix CPU usage problems in HTTP connector.
This commit is contained in:
		
							parent
							
								
									fb2d022800
								
							
						
					
					
						commit
						e6179904c7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -334,6 +334,8 @@ int main(int argc, char ** argv){ | |||
|         delete T; | ||||
|       } | ||||
|       Connector_HTTP::thread_mutex.unlock(); | ||||
|     }else{ | ||||
|       usleep(100000);//sleep 100ms
 | ||||
|     } | ||||
|   }//while connected and not requested to stop
 | ||||
|   server_socket.close(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma