Sfoglia il codice sorgente

tls (common):Revert "Replace TCP_BUF_SIZE with a cfg_get(..)."

This reverts commit 29b0138a7ce09cab1024e25ac457cb8915a973da.
(bad fix)
Andrei Pelinescu-Onciul 16 anni fa
parent
commit
dcf7195d5d
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      modules/tls/tls_server.c

+ 1 - 2
modules/tls/tls_server.c

@@ -45,7 +45,6 @@
 #include "../../timer.h"
 #include "../../globals.h"
 #include "../../pt.h"
-#include "../../tcp_options.h"
 
 #include "tls_init.h"
 #include "tls_domain.h"
@@ -814,7 +813,7 @@ int tls_h_read(struct tcp_connection * c)
 	SSL* ssl;
 
 	r = &c->req;
-	bytes_free = cfg_get(tcp, tcp_cfg, rd_buf_size) - (int)(r->pos - r->buf);
+	bytes_free = TCP_BUF_SIZE - (int)(r->pos - r->buf);
 	
 	if (bytes_free == 0) {
 		ERR("Buffer overrun, dropping\n");