mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 15:47:15 +03:00
remove obsolete debug code
This commit is contained in:
parent
098a55fd1d
commit
dbad46a358
@ -38,8 +38,6 @@
|
|||||||
#include "collection.h"
|
#include "collection.h"
|
||||||
#include "gap.h"
|
#include "gap.h"
|
||||||
|
|
||||||
static int debug = 0;
|
|
||||||
|
|
||||||
const char* server_type = "sslh-select";
|
const char* server_type = "sslh-select";
|
||||||
|
|
||||||
/* Global state for a select() loop */
|
/* Global state for a select() loop */
|
||||||
@ -347,8 +345,6 @@ int active_queue(struct connection* cnx, int fd)
|
|||||||
static void tcp_read_process(struct select_info* fd_info,
|
static void tcp_read_process(struct select_info* fd_info,
|
||||||
int fd)
|
int fd)
|
||||||
{
|
{
|
||||||
if (debug) fprintf(stderr, "cnx_read_process fd %d\n", fd);
|
|
||||||
|
|
||||||
cnx_collection* collection = fd_info->collection;
|
cnx_collection* collection = fd_info->collection;
|
||||||
struct connection* cnx = collection_get_cnx_from_fd(collection, fd);
|
struct connection* cnx = collection_get_cnx_from_fd(collection, fd);
|
||||||
/* Determine active queue (0 or 1): if fd is that of q[1], active_q = 1,
|
/* Determine active queue (0 or 1): if fd is that of q[1], active_q = 1,
|
||||||
@ -403,8 +399,6 @@ static void cnx_read_process(struct select_info* fd_info, int fd)
|
|||||||
/* Process a connection that is active in write */
|
/* Process a connection that is active in write */
|
||||||
static void cnx_write_process(struct select_info* fd_info, int fd)
|
static void cnx_write_process(struct select_info* fd_info, int fd)
|
||||||
{
|
{
|
||||||
if (debug) fprintf(stderr, "cnx_write_process fd %d\n", fd);
|
|
||||||
|
|
||||||
struct connection* cnx = collection_get_cnx_from_fd(fd_info->collection, fd);
|
struct connection* cnx = collection_get_cnx_from_fd(fd_info->collection, fd);
|
||||||
int res;
|
int res;
|
||||||
int queue = active_queue(cnx, fd);
|
int queue = active_queue(cnx, fd);
|
||||||
@ -433,8 +427,6 @@ void cnx_accept_process(struct select_info* fd_info, struct listen_endpoint* lis
|
|||||||
struct connection* cnx;
|
struct connection* cnx;
|
||||||
int new_fd;
|
int new_fd;
|
||||||
|
|
||||||
if (debug) fprintf(stderr, "cnx_accept_process fd %d\n", fd);
|
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case SOCK_STREAM:
|
case SOCK_STREAM:
|
||||||
cnx = accept_new_connection(fd, fd_info->collection);
|
cnx = accept_new_connection(fd, fd_info->collection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user