diff options
author | Kozlov Dmitry <dima@server> | 2010-10-05 14:18:52 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-10-05 14:18:52 +0400 |
commit | 7f16563bd5a4ef21b970e8dcbab0e5cbe02bfe97 (patch) | |
tree | 573a053112cb4c4b0980d0688a2fe63ef79fd1c0 /accel-pptpd/ctrl | |
parent | c9e6b5f6b41163ed363e2ad0a1fc354607cb402e (diff) | |
download | accel-ppp-7f16563bd5a4ef21b970e8dcbab0e5cbe02bfe97.tar.gz accel-ppp-7f16563bd5a4ef21b970e8dcbab0e5cbe02bfe97.zip |
bug fixes
Diffstat (limited to 'accel-pptpd/ctrl')
-rw-r--r-- | accel-pptpd/ctrl/pptp.c | 6 |
1 files changed, 4 insertions, 2 deletions
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)) { |