Meer debugging
This commit is contained in:
		
							parent
							
								
									a575eb2359
								
							
						
					
					
						commit
						af5c1666cb
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -36,8 +36,10 @@ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock | |||
|   int r = 0; | ||||
|   r = DDV_iread(buffer + sofar,count-sofar,sock); | ||||
|   if (r < 0){ | ||||
|     All_Hell_Broke_Loose = true; | ||||
|     fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno)); | ||||
|     if (errno != EWOULDBLOCK){ | ||||
|       All_Hell_Broke_Loose = true; | ||||
|       fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno)); | ||||
|     } | ||||
|     return false; | ||||
|   } | ||||
|   sofar += r; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma