The server port comes from a URL, e.g. http://10.44.10.1:80, and I just atoi
the port. I have checked with a network trace that the correct port is being
connected to. With previous versions of Traffic Server I never had to
use ntohs and
just passed in the atoied number.
On 12 September 2011 15:57
On 3.1 I have to use the ntohs function for the port number when using
TsNetConnect. Have you tried this?
On 12 September 2011 02:33, steven liu wrote:
> Thanks. Yes. I am setting port using hons() using following codes.
>
> struct sockaddr_in ip4addr;
> ip4addr.sin_family = AF_INET;
> ip4addr.s
To clarify when you say logging off do you mean:
CONFIG proxy.config.log.logging_enabled INT 0
Thanks,
Chris Reynolds.
On 9 September 2011 18:36, Leif Hedstrom wrote:
> On 09/09/2011 10:56 AM, Bryan Call wrote:
>
>> I ran some benchmarks on the 3.0.1 release and the 3.1.0
refox and opened a new tab for each attempt.
Its odd that for 90% of the requests Traffic Server returns a 200 response
but for the rest (which are identical) it returns a 304. I guess that the
304 is causing the transformation not to fire because it thinks there is no
data. I cannot think of a workar
+1 from me as well.
Running Polygraph performance (on a custom Linux from scratch 32-bit system)
and it seems to be stable. Unfortunately I do not have any results from
previous builds so I cannot tell if the performance has changed.
On 25 August 2011 13:03, Jack Quinlin wrote:
> +1 from me.
>
Thank-you for the suggestion - I will just use gethostbyaddr_r for the
moment.
On 8 August 2011 16:02, Leif Hedstrom wrote:
> On 08/08/2011 08:09 AM, Theo Schlossnagle wrote:
>
>> I would think we'd need to provide a convenience function that uses
>> the DNS subsystem to do PTR record lookups.
>
Hi,
The trunk code version of TSNetConnect now seems to take a host byte ordered
port number. Previously (i.e. 3.0.0) took the network byte order. I.e. I now
have to use the ntohs function on the port number.
Is this by design?
Thank-you,
Chris Reynolds.
should test the svn trunk.
>
> you may get the information from:
> https://issues.apache.org/jira/browse/TS-880
>
> thanks
>
> 在 2011-08-22一的 09:48 +0100,Chris Reynolds写道:
> > Hi,
> >
> > I am performing some basic performance tests with Traffic Server with and
would make
the performance faster not slower.
Chris Reynolds.
On 22 August 2011 09:48, Chris Reynolds wrote:
> Hi,
>
> I am performing some basic performance tests with Traffic Server with and
> without a plugin I have written. I have noticed that if you download
> (without any pl
seems to be affecting the overall performance of Traffic Server. Note I
am using version 3.0.0 with no caching enabled.
Has any one got any ideas?
Thank-you,
Chris Reynolds.
Hi,
Is it possible using the API to obtain the client's host name - i.e. a
reverse DNS lookup? If not I guess it is safe to use gethostbyaddr_r to look
it up from the client's IP address.
Thank-you,
Chris Reynolds.
Hi,
Is it possible to obtain the proxy's port number from inside a plugin?
I want to use more than one listening port but I need to know which
port the client connected to in my plugin code.
Note - I am using Traffic Server 3.0.0.
Thank-you,
Chris Reynolds.
Hi,
I have written a plugin that intercepts HTTP requests by using
TSHttpTxnIntercept and then reads the request and scans it. If it is
allowed then I open a connection to the server by using TSNetConnect
and send the request on.
I have two problems:
1. By using TSNetConnect I bypass Traffic Serv
((destructor)) but it never seems to call them. I can
catch the signal SIGTERM but it is too late by then. I am using
'trafficserver stop' to stop it.
Thank-you,
Chris Reynolds.
Hi,
I am trying to write a Traffic Server plugin that will allow the
scanning of the request and response data and either let the data
through or block it.
Initially I read the headers in the INK_EVENT_HTTP_READ_REQUEST_HDR
and the INK_EVENT_HTTP_READ_RESPONSE_HDR hooks and then added
transform h
15 matches
Mail list logo