diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-09-04 00:00:21 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-09-04 00:00:21 +0000 |
commit | 442f84954782178a25323f3602f0f3168530eab5 (patch) | |
tree | a62953df4b5d79564bb6a90251e2f56e935d8f00 /usr.sbin/ppp/bundle.c | |
parent | 20d6e5fe6e93f71a1ae0ed8161a193c4631ae7cc (diff) | |
download | src-test2-442f84954782178a25323f3602f0f3168530eab5.tar.gz src-test2-442f84954782178a25323f3602f0f3168530eab5.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index d27a667556a0..072b5c384618 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -411,7 +411,7 @@ bundle_UpdateSet(struct descriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n) if (r && (bundle->phase == PHASE_NETWORK || bundle->phys_type.all & PHYS_AUTO)) { /* enough surplus so that we can tell if we're getting swamped */ - if (queued < 20) { + if (queued < 30) { /* Not enough - select() for more */ if (bundle->choked.timer.state == TIMER_RUNNING) timer_Stop(&bundle->choked.timer); /* Not needed any more */ @@ -789,6 +789,8 @@ bundle_Destroy(struct bundle *bundle) while (dl) dl = datalink_Destroy(dl); + ipcp_Destroy(&bundle->ncp.ipcp); + close(bundle->dev.fd); bundle_UnlockTun(bundle); |