FreeBSD Bugzilla – Attachment 80478 Details for
Bug 115420
port update: net/bounce . timer made optional
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 970 bytes, created by
SeaD
on 2007-08-11 14:40:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
SeaD
Created:
2007-08-11 14:40:09 UTC
Size:
970 bytes
patch
obsolete
>diff -ruN bounce.old/files/patch-02 bounce/files/patch-02 >--- bounce.old/files/patch-02 Tue Oct 3 16:43:35 2006 >+++ bounce/files/patch-02 Sat Aug 11 16:33:16 2007 >@@ -1,6 +1,30 @@ >---- bounce.c.orig Fri Jun 2 12:58:37 2006 >-+++ bounce.c Fri Jun 2 13:25:28 2006 >-@@ -138,7 +138,7 @@ >+--- bounce.c.orig Sat Aug 11 15:46:54 2007 >++++ bounce.c Sat Aug 11 15:59:20 2007 >+@@ -31,6 +31,7 @@ >+ #define DEFAULT_PORT 1523 >+ >+ char sbuf[16384], cbuf[16384]; >++int t=0; >+ >+ void sigchld() { >+ signal(SIGCHLD, sigchld); >+@@ -46,12 +47,14 @@ >+ >+ struct itimerval itime; >+ >++ if (t) { >+ itime.it_interval.tv_sec=0; >+ itime.it_interval.tv_usec=0; >+- itime.it_value.tv_sec=21600; >++ itime.it_value.tv_sec=t; >+ itime.it_value.tv_usec=0; >+ setitimer(ITIMER_REAL,&itime,NULL); >+ /* arbitrary connection time limit: 6 hours (in case the client hangs) */ >++ } >+ >+ chead=ctail=cbuf; >+ cpos=0; >+@@ -138,7 +141,7 @@ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 115420
: 80478