From 7f16563bd5a4ef21b970e8dcbab0e5cbe02bfe97 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Tue, 5 Oct 2010 14:18:52 +0400 Subject: bug fixes --- accel-pptpd/ctrl/pptp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'accel-pptpd/ctrl/pptp.c') diff --git a/accel-pptpd/ctrl/pptp.c b/accel-pptpd/ctrl/pptp.c index 36c8e6b..2c3f73c 100644 --- a/accel-pptpd/ctrl/pptp.c +++ b/accel-pptpd/ctrl/pptp.c @@ -51,7 +51,7 @@ struct pptp_conn_t struct ppp_t ppp; }; -static int conf_timeout = 3; +static int conf_timeout = 5; static int conf_echo_interval = 0; static int conf_echo_failure = 3; static int conf_verbose = 0; @@ -460,8 +460,10 @@ static int pptp_read(struct triton_md_handler_t *h) log_ppp_error("pptp: read: %s\n",strerror(errno)); goto drop; } - if (n == 0) + if (n == 0) { + log_ppp_debug("pptp: disconnect by peer\n"); goto drop; + } conn->in_size += n; if (conn->in_size >= sizeof(*hdr)) { if (hdr->magic != htonl(PPTP_MAGIC)) { -- cgit v1.2.3