1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-13 16:30:06 +00:00

zero copy sockets do only work on page aligned buffers for page sized blocks. So remove the code that tried to take advantage of false assuming, it would work on any buffer

This commit is contained in:
erdgeist 2007-02-03 16:19:59 +00:00
parent d451d32b41
commit 0d6f508882

View File

@ -35,14 +35,8 @@ static const size_t SUCCESS_HTTP_SIZE_OFF = 17;
/* To always have space for error messages ;) */ /* To always have space for error messages ;) */
#define static_outbuf_size 8192
#define static_outbuf_count 64
#define static_outbuf ( static_outbufs + static_outbuf_size * static_outbuf_off )
#define static_outbuf_next ( static_outbuf_off = ( static_outbuf_off + 1 ) & ( static_outbuf_count - 1 ) )
static char static_inbuf[8192]; static char static_inbuf[8192];
static char static_outbufs[ static_outbuf_size * static_outbuf_count ]; static char static_outbuf[8192];
static int static_outbuf_off = 0;
#ifdef _DEBUG_HTTPERROR #ifdef _DEBUG_HTTPERROR
static char debug_request[8192]; static char debug_request[8192];
@ -146,7 +140,6 @@ static void senddata( const int64 s, char *buffer, size_t size ) {
written_size = write( s, buffer, size ); written_size = write( s, buffer, size );
if( ( written_size < 0 ) || ( written_size == size ) ) { if( ( written_size < 0 ) || ( written_size == size ) ) {
static_outbuf_next;
free( h ); io_close( s ); free( h ); io_close( s );
} else { } else {
char * outbuf = malloc( size - written_size ); char * outbuf = malloc( size - written_size );