Re: Patch accept.c in loadable builtins

2022-01-07 Thread Dzogovic Vehbo
Also allowing the bind-addresse can increase the security but not listening on external connection Chet Ramey schrieb am Fr., 7. Jan. 2022, 16:54: > On 1/7/22 10:52 AM, Dzogovic Vehbo wrote: > > When you enter the time wait, you can't rebind again, since the > socketopt > > is defined after bind

Re: Patch accept.c in loadable builtins

2022-01-07 Thread Chet Ramey
On 1/7/22 10:52 AM, Dzogovic Vehbo wrote: When you enter the time wait, you can't rebind again, since the socketopt is defined after bind. By moving it up before the bind, you client sock will still enter the TIME_WAIT after closing the fb, but you can rebind. OK, I see. Chet -- ``The lyf so

Re: Patch accept.c in loadable builtins

2022-01-07 Thread Dzogovic Vehbo
When you enter the time wait, you can't rebind again, since the socketopt is defined after bind. By moving it up before the bind, you client sock will still enter the TIME_WAIT after closing the fb, but you can rebind. No comment to linger , we can keep ot on zero lengtj Chet Ramey schrieb am Fr

Re: Patch accept.c in loadable builtins

2022-01-07 Thread Chet Ramey
On 1/7/22 6:01 AM, Dzogovic Vehbo wrote: Hello, Could we apply this patch to examples/loadables/accept.c ? https://github.com/dzove855/Bash-web-server/blob/main/accept.patch This will alow rebinding on the port instead of failing linked to the TIME_WAIT state. Why would you want to defeat TIM

Patch accept.c in loadable builtins

2022-01-07 Thread Dzogovic Vehbo
Hello, Could we apply this patch to examples/loadables/accept.c ? https://github.com/dzove855/Bash-web-server/blob/main/accept.patch This will alow rebinding on the port instead of failing linked to the TIME_WAIT state. Also allow the usage of bind_address instead of using ANY.