Re: lua TXN.set_tos not work

2015-10-31 Thread Willy Tarreau
On Fri, Oct 30, 2015 at 09:25:43AM +, ??? wrote: > if i manually modify source code and simply set tos directly. where should > i add it. > now I'm adding: > > # tcp_proto.c, tcp_connect_server, line 513 - 514. > > 511 if (global.tune.server_rcvbuf) > 512 setsockopt(fd,

Re: lua TXN.set_tos not work

2015-10-30 Thread Willy Tarreau
On Thu, Oct 29, 2015 at 10:57:47AM +, ??? wrote: > I have this in config file > > listen railgun > option transparent > bind *:5000 transparent > server main * > source * > tcp-request content lua.test > tcp-request content reject if

Re: lua TXN.set_tos not work

2015-10-30 Thread Willy Tarreau
On Fri, Oct 30, 2015 at 08:16:07AM +, ??? wrote: > ohh.. i want to modify backend side... how to to it? It was not implemented. I noticed that the choice of action names was rather poor because it's confusing, no side is indicated. I think in 1.7 we'll have to rename some actions

Re: lua TXN.set_tos not work

2015-10-30 Thread 神楽坂玲奈
ohh.. i want to modify backend side... how to to it? Willy Tarreau 于2015年10月30日周五 下午3:17写道: > On Thu, Oct 29, 2015 at 10:57:47AM +, ??? wrote: > > I have this in config file > > > > listen railgun > > option transparent > > bind *:5000

Re: lua TXN.set_tos not work

2015-10-30 Thread 神楽坂玲奈
if i manually modify source code and simply set tos directly. where should i add it. now I'm adding: # tcp_proto.c, tcp_connect_server, line 513 - 514. 511 if (global.tune.server_rcvbuf) 512 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, _rcvbuf, sizeof(global.tune.server_rcvbuf)); 513 int tos=0x10; 514

lua TXN.set_tos not work

2015-10-29 Thread 神楽坂玲奈
I have this in config file listen railgun option transparent bind *:5000 transparent server main * source * tcp-request content lua.test tcp-request content reject if LOCALHOST and this in .lua core.register_action("test", { "tcp-req", "http-req" },