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
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
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" },
3 matches
Mail list logo