mirror of
				https://github.com/3proxy/3proxy.git
				synced 2025-11-04 07:42:39 +08:00 
			
		
		
		
	Fix bandlim handling
This commit is contained in:
		
							parent
							
								
									a0413c89ef
								
							
						
					
					
						commit
						c7797a66f7
					
				@ -355,7 +355,7 @@ log("done read from server to pipe\n");
 | 
			
		||||
				if(inserverpipe >= MAXSPLICE) TOSERVERPIPE = 0;
 | 
			
		||||
				if(param->bandlimfunc) {
 | 
			
		||||
					int sl1;
 | 
			
		||||
					sl1 = (*param->bandlimfunc)(param, 1, res);
 | 
			
		||||
					sl1 = (*param->bandlimfunc)(param, res, 0);
 | 
			
		||||
					if(sl1 > sleeptime) sleeptime = sl1;
 | 
			
		||||
		    		}
 | 
			
		||||
 				if(param->operation == UDPASSOC && param->srv->singlepacket){
 | 
			
		||||
@ -418,7 +418,7 @@ log("done read from server to buf");
 | 
			
		||||
				param->srvinbuf += res;
 | 
			
		||||
				if(param->bandlimfunc) {
 | 
			
		||||
					int sl1;
 | 
			
		||||
					sl1 = (*param->bandlimfunc)(param, 1, res);
 | 
			
		||||
					sl1 = (*param->bandlimfunc)(param, res, 0);
 | 
			
		||||
					if(sl1 > sleeptime) sleeptime = sl1;
 | 
			
		||||
		    		}
 | 
			
		||||
				if(param->srvbufsize == param->srvinbuf) TOSERVERBUF = 0;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user