Re: Variables: Socket cookie variable for debugging purposes

2017-07-11 Thread Donatas Abraitis
I haven't seen $connection before. Dunno how I missed it. On Tue, Jul 11, 2017 at 10:58 PM, Maxim Dounin wrote: > Hello! > > On Tue, Jul 11, 2017 at 10:18:00PM +0300, Donatas Abraitis wrote: > >> In short, it provides unique socket identifier. >> >> * It would be simpler to identify connections a

Re: Variables: Socket cookie variable for debugging purposes

2017-07-11 Thread Maxim Dounin
Hello! On Tue, Jul 11, 2017 at 10:18:00PM +0300, Donatas Abraitis wrote: > In short, it provides unique socket identifier. > > * It would be simpler to identify connections and filter them out by > $socket_cookie only. As an example could be a custom response header > `X-Request: $socket_cookie:

Re: Variables: Socket cookie variable for debugging purposes

2017-07-11 Thread Donatas Abraitis
In short, it provides unique socket identifier. * It would be simpler to identify connections and filter them out by $socket_cookie only. As an example could be a custom response header `X-Request: $socket_cookie:$request_id`, or just `X-Socket-Id: $socket_cookie`. * Another example could be to u

Re: Variables: Socket cookie variable for debugging purposes

2017-07-11 Thread Maxim Dounin
Hello! On Fri, Jul 07, 2017 at 10:28:42PM +0300, Donatas Abraitis wrote: > this looks promising when new 4.12 kernel introduced SO_COOKIE socket > option which is able to generate a cookie for the socket. > > More information and implementation is here: > https://git.kernel.org/pub/scm/linux/ker

Variables: Socket cookie variable for debugging purposes

2017-07-07 Thread Donatas Abraitis
Hi, this looks promising when new 4.12 kernel introduced SO_COOKIE socket option which is able to generate a cookie for the socket. More information and implementation is here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5daab9db7b65df87da26fd8cfa695fb9546a1ddb