summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/hoststated/check_tcp.c3
-rw-r--r--usr.sbin/hoststated/hce.c4
-rw-r--r--usr.sbin/hoststated/ssl.c13
-rw-r--r--usr.sbin/relayd/check_tcp.c3
-rw-r--r--usr.sbin/relayd/hce.c4
-rw-r--r--usr.sbin/relayd/ssl.c13
6 files changed, 6 insertions, 34 deletions
diff --git a/usr.sbin/hoststated/check_tcp.c b/usr.sbin/hoststated/check_tcp.c
index 2d480546c7a..20dcfe9a5fc 100644
--- a/usr.sbin/hoststated/check_tcp.c
+++ b/usr.sbin/hoststated/check_tcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: check_tcp.c,v 1.17 2007/02/06 10:27:33 reyk Exp $ */
+/* $OpenBSD: check_tcp.c,v 1.18 2007/02/07 14:39:45 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -200,7 +200,6 @@ tcp_send_req(int s, short event, void *arg)
len -= bs;
} while (len > 0);
- log_debug("tcp_send_req: write done");
if ((cte->buf = buf_dynamic(SMALL_READ_BUF_SIZE, UINT_MAX)) == NULL)
fatalx("tcp_send_req: cannot create dynamic buffer");
event_again(&cte->ev, s, EV_TIMEOUT|EV_READ, tcp_read_buf,
diff --git a/usr.sbin/hoststated/hce.c b/usr.sbin/hoststated/hce.c
index 12a77baf36c..831be46bffb 100644
--- a/usr.sbin/hoststated/hce.c
+++ b/usr.sbin/hoststated/hce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hce.c,v 1.13 2007/02/07 13:39:58 reyk Exp $ */
+/* $OpenBSD: hce.c,v 1.14 2007/02/07 14:39:45 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -160,8 +160,6 @@ hce_launch_checks(int fd, short event, void *arg)
struct table *table;
struct timeval tv;
- log_debug("hce_launch_checks: scheduled");
-
/*
* notify pfe checks are done and schedule next check
*/
diff --git a/usr.sbin/hoststated/ssl.c b/usr.sbin/hoststated/ssl.c
index 7f23bea3040..87c887d5e21 100644
--- a/usr.sbin/hoststated/ssl.c
+++ b/usr.sbin/hoststated/ssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.c,v 1.4 2007/02/06 10:27:33 reyk Exp $ */
+/* $OpenBSD: ssl.c,v 1.5 2007/02/07 14:39:45 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -109,8 +109,6 @@ ssl_read(int s, short event, void *arg)
}
retry:
- log_debug("ssl_read: scheduling ssl_read on %s",
- (retry_flag == EV_READ) ? "EV_READ" : "EV_WRITE");
event_again(&cte->ev, s, EV_TIMEOUT|retry_flag, ssl_read,
&cte->tv_start, &cte->table->timeout, cte);
return;
@@ -156,13 +154,10 @@ ssl_write(int s, short event, void *arg)
if ((cte->buf = buf_dynamic(SMALL_READ_BUF_SIZE, UINT_MAX)) == NULL)
fatalx("ssl_write: cannot create dynamic buffer");
- log_debug("ssl_write: scheduling ssl_read on EV_READ");
event_again(&cte->ev, s, EV_TIMEOUT|EV_READ, ssl_read,
&cte->tv_start, &cte->table->timeout, cte);
return;
retry:
- log_debug("ssl_write: scheduling ssl_write on %s",
- (retry_flag == EV_READ) ? "EV_READ" : "EV_WRITE");
event_again(&cte->ev, s, EV_TIMEOUT|retry_flag, ssl_write,
&cte->tv_start, &cte->table->timeout, cte);
}
@@ -208,9 +203,7 @@ ssl_connect(int s, short event, void *arg)
ssl_cleanup(cte);
return;
}
- log_debug("ssl_connect: connect succeeded");
if (cte->table->sendbuf != NULL) {
- log_debug("ssl_connect: scheduling ssl_write on EV_WRITE");
event_again(&cte->ev, cte->s, EV_TIMEOUT|EV_WRITE, ssl_write,
&cte->tv_start, &cte->table->timeout, cte);
return;
@@ -218,14 +211,11 @@ ssl_connect(int s, short event, void *arg)
if ((cte->buf = buf_dynamic(SMALL_READ_BUF_SIZE, UINT_MAX)) == NULL)
fatalx("ssl_connect: cannot create dynamic buffer");
- log_debug("ssl_connect: scheduling ssl_read on EV_READ");
event_again(&cte->ev, cte->s, EV_TIMEOUT|EV_READ, ssl_read,
&cte->tv_start, &cte->table->timeout, cte);
return;
retry:
- log_debug("ssl_write: scheduling ssl_write on %s",
- (retry_flag == EV_READ) ? "EV_READ" : "EV_WRITE");
event_again(&cte->ev, s, EV_TIMEOUT|retry_flag, ssl_connect,
&cte->tv_start, &cte->table->timeout, cte);
}
@@ -233,7 +223,6 @@ retry:
void
ssl_cleanup(struct ctl_tcp_event *cte)
{
- log_debug("ssl_cleanup: cleaning for %s", cte->host->name);
close(cte->s);
if (cte->ssl != NULL)
SSL_free(cte->ssl);
diff --git a/usr.sbin/relayd/check_tcp.c b/usr.sbin/relayd/check_tcp.c
index 2d480546c7a..20dcfe9a5fc 100644
--- a/usr.sbin/relayd/check_tcp.c
+++ b/usr.sbin/relayd/check_tcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: check_tcp.c,v 1.17 2007/02/06 10:27:33 reyk Exp $ */
+/* $OpenBSD: check_tcp.c,v 1.18 2007/02/07 14:39:45 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -200,7 +200,6 @@ tcp_send_req(int s, short event, void *arg)
len -= bs;
} while (len > 0);
- log_debug("tcp_send_req: write done");
if ((cte->buf = buf_dynamic(SMALL_READ_BUF_SIZE, UINT_MAX)) == NULL)
fatalx("tcp_send_req: cannot create dynamic buffer");
event_again(&cte->ev, s, EV_TIMEOUT|EV_READ, tcp_read_buf,
diff --git a/usr.sbin/relayd/hce.c b/usr.sbin/relayd/hce.c
index 12a77baf36c..831be46bffb 100644
--- a/usr.sbin/relayd/hce.c
+++ b/usr.sbin/relayd/hce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hce.c,v 1.13 2007/02/07 13:39:58 reyk Exp $ */
+/* $OpenBSD: hce.c,v 1.14 2007/02/07 14:39:45 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -160,8 +160,6 @@ hce_launch_checks(int fd, short event, void *arg)
struct table *table;
struct timeval tv;
- log_debug("hce_launch_checks: scheduled");
-
/*
* notify pfe checks are done and schedule next check
*/
diff --git a/usr.sbin/relayd/ssl.c b/usr.sbin/relayd/ssl.c
index 7f23bea3040..87c887d5e21 100644
--- a/usr.sbin/relayd/ssl.c
+++ b/usr.sbin/relayd/ssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.c,v 1.4 2007/02/06 10:27:33 reyk Exp $ */
+/* $OpenBSD: ssl.c,v 1.5 2007/02/07 14:39:45 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -109,8 +109,6 @@ ssl_read(int s, short event, void *arg)
}
retry:
- log_debug("ssl_read: scheduling ssl_read on %s",
- (retry_flag == EV_READ) ? "EV_READ" : "EV_WRITE");
event_again(&cte->ev, s, EV_TIMEOUT|retry_flag, ssl_read,
&cte->tv_start, &cte->table->timeout, cte);
return;
@@ -156,13 +154,10 @@ ssl_write(int s, short event, void *arg)
if ((cte->buf = buf_dynamic(SMALL_READ_BUF_SIZE, UINT_MAX)) == NULL)
fatalx("ssl_write: cannot create dynamic buffer");
- log_debug("ssl_write: scheduling ssl_read on EV_READ");
event_again(&cte->ev, s, EV_TIMEOUT|EV_READ, ssl_read,
&cte->tv_start, &cte->table->timeout, cte);
return;
retry:
- log_debug("ssl_write: scheduling ssl_write on %s",
- (retry_flag == EV_READ) ? "EV_READ" : "EV_WRITE");
event_again(&cte->ev, s, EV_TIMEOUT|retry_flag, ssl_write,
&cte->tv_start, &cte->table->timeout, cte);
}
@@ -208,9 +203,7 @@ ssl_connect(int s, short event, void *arg)
ssl_cleanup(cte);
return;
}
- log_debug("ssl_connect: connect succeeded");
if (cte->table->sendbuf != NULL) {
- log_debug("ssl_connect: scheduling ssl_write on EV_WRITE");
event_again(&cte->ev, cte->s, EV_TIMEOUT|EV_WRITE, ssl_write,
&cte->tv_start, &cte->table->timeout, cte);
return;
@@ -218,14 +211,11 @@ ssl_connect(int s, short event, void *arg)
if ((cte->buf = buf_dynamic(SMALL_READ_BUF_SIZE, UINT_MAX)) == NULL)
fatalx("ssl_connect: cannot create dynamic buffer");
- log_debug("ssl_connect: scheduling ssl_read on EV_READ");
event_again(&cte->ev, cte->s, EV_TIMEOUT|EV_READ, ssl_read,
&cte->tv_start, &cte->table->timeout, cte);
return;
retry:
- log_debug("ssl_write: scheduling ssl_write on %s",
- (retry_flag == EV_READ) ? "EV_READ" : "EV_WRITE");
event_again(&cte->ev, s, EV_TIMEOUT|retry_flag, ssl_connect,
&cte->tv_start, &cte->table->timeout, cte);
}
@@ -233,7 +223,6 @@ retry:
void
ssl_cleanup(struct ctl_tcp_event *cte)
{
- log_debug("ssl_cleanup: cleaning for %s", cte->host->name);
close(cte->s);
if (cte->ssl != NULL)
SSL_free(cte->ssl);