mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 03:43:23 +08:00 
			
		
		
		
	static bufs are not shared anymore, even if that means more memory.
This commit is contained in:
		
							parent
							
								
									9e45802946
								
							
						
					
					
						commit
						8bee224dc0
					
				@ -18,6 +18,7 @@
 | 
				
			|||||||
#ifdef WANT_ACCESS_CONTROL
 | 
					#ifdef WANT_ACCESS_CONTROL
 | 
				
			||||||
static char *accesslist_filename = NULL;
 | 
					static char *accesslist_filename = NULL;
 | 
				
			||||||
static ot_vector accesslist;
 | 
					static ot_vector accesslist;
 | 
				
			||||||
 | 
					static char static_inbuf[8192];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void accesslist_reset( void ) {
 | 
					static void accesslist_reset( void ) {
 | 
				
			||||||
  free( accesslist.data );
 | 
					  free( accesslist.data );
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										3
									
								
								ot_udp.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ot_udp.c
									
									
									
									
									
								
							@ -14,6 +14,9 @@
 | 
				
			|||||||
#include "ot_udp.h"
 | 
					#include "ot_udp.h"
 | 
				
			||||||
#include "ot_stats.h"
 | 
					#include "ot_stats.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static char static_inbuf[8192];
 | 
				
			||||||
 | 
					static char static_outbuf[8192];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */
 | 
					/* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */
 | 
				
			||||||
void handle_udp4( int64 serversocket ) {
 | 
					void handle_udp4( int64 serversocket ) {
 | 
				
			||||||
  ot_peer     peer;
 | 
					  ot_peer     peer;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user