Re: header values.

2019-12-18 Thread Dk Jack
fter parsing. > That might not be too bad to implement, with a configuration switch to > indicate whether the raw buffer should be preserved. > >> On Tue, Dec 17, 2019 at 7:02 PM Dk Jack wrote: >> >> Thanks Alan. Would be nice to have in future if possible. We have a

Re: header values.

2019-12-17 Thread Dk Jack
uted as (value.data() - (name.data() + name.size())) - 1 > (don't count the colon). This won't work for fields where the value has > been changed, because the new value will be independent. > >> On Tue, Dec 17, 2019 at 4:41 PM Dk Jack wrote: >> >> Perhaps, I sh

Re: header values.

2019-12-17 Thread Dk Jack
gt; (OWS). > > I'm unclear as to what you want to accomplish - if it's printing it nicer, > just put a space in your printf format string. Do you have some application > that is sensitive to the amount of white space? > >> On Mon, Dec 16, 2019 at 6:46 PM Dk Jack wrote

Re: header values.

2019-12-16 Thread Dk Jack
as it is part of the specification and not > considered part of the name or value of the field. > > On Mon, Dec 9, 2019 at 5:36 PM Dk Jack wrote: > > > Does TS maintain two copies of the header values? Because the origin > > is receiving the unmodified header values i.e.

Re: header values.

2019-12-09 Thread Dk Jack
ty issues > > On Tue, Dec 10, 2019, 08:08 Walt Karas > wrote: > > > It looks like TS is discarding spaces that are unnecessary to the meaning > > of the message. > > > > On Mon, Dec 9, 2019 at 4:54 PM Dk Jack wrote: > > > > > Hi, > > &g

header values.

2019-12-09 Thread Dk Jack
Hi, I am using the atscppapi and I am noticing something weird. When I send a curl request, here's list of headers curl prints. > GET / HTTP/1.1 > Host: testhost1 > User-Agent: curl/7.47.0 > content-type: woof > accept-encoding: gzip, de

Re: Session API hooks support for CPPAPI.

2019-07-13 Thread Dk Jack
Interesting. Would a session mean TCP/ssl session? Would this allow for keeping track of all requests received on a connection? On Fri, Jul 12, 2019 at 2:52 PM Walt Karas wrote: > > Anyone interested in the CPPAPI please look at: > https://github.com/apache/trafficserver/pull/5713

Re: transparent proxy

2019-07-02 Thread Dk Jack
1 iptables -t mangle -A PREROUTING -i enp1s0f3 -p tcp -m tcp --sport 80 -j MARK --set-mark 1/1 ip rule add fwmark 1/1 table 1 ip route add local 0.0.0.0/0 dev lo table 1 On Mon, Jun 24, 2019 at 4:49 PM Dk Jack wrote: > I disabled rp_filter. However, I see no change in behavior. The kernel

Re: Implementing Rate-limiting in forward proxy mode

2019-06-24 Thread Dk Jack
one client will cause problems for other client on that connection Dk. > On Jun 24, 2019, at 9:01 PM, Sudheer Vinukonda > wrote: > > > >> On Jun 24, 2019, at 8:33 PM, Dk Jack wrote: >> >> I suspect connection pools would be using the http pipeline featur

Re: Implementing Rate-limiting in forward proxy mode

2019-06-24 Thread Dk Jack
ponse is sent to the user agent. > To configure > > Number of transactions that can be delayed concurrently > See proxy.config.http.per_server.connection.queue_size. > > How long to delay before rechecking > See proxy.config.http.per_server.connection.queue_delay. > > Upstream server group defi

Re: Implementing Rate-limiting in forward proxy mode

2019-06-24 Thread Dk Jack
into head-of-line blocking situation. On Mon, Jun 24, 2019 at 4:07 PM Leif Hedstrom wrote: > You definitely would not want to stall the client after you’ve made an > origin connection. I.e. you only want to stall the UA. > > — Leif > > > On Jun 24, 2019, at 14:42, Dk Jack

Re: transparent proxy

2019-06-24 Thread Dk Jack
l the filters as recommended in the debug section. Still no luck... On Mon, Jun 24, 2019 at 10:45 AM Dk Jack wrote: > Ah! Yeah, I think you are taking about reverse path filter. I remember > checking for it. But I’ll check again. > > Dk. > > > On Jun 24, 2019, at 8:31

Re: Implementing Rate-limiting in forward proxy mode

2019-06-24 Thread Dk Jack
Also, stalling will not be good, if you have CDN upstream from you that is pipelining requests on the same connection for multiple clients. In our plugin we tried delay request, but we couldn’t solve http 1.1 pipeline issue. Hence ended up going with the simple approach of deny. Dk. > On Jun

Re: transparent proxy

2019-06-24 Thread Dk Jack
t show up on unexpected interfaces. May not be an > issue in the bridge case, but something to look into. > >> On Sun, Jun 23, 2019, 11:54 PM Dk Jack wrote: >> >> Hi Susan, >> yes, I've enabled ip_forward. What's an rp_filter? Haven't checked >> /var/l

Re: Implementing Rate-limiting in forward proxy mode

2019-06-23 Thread Dk Jack
Not sure you need queues. Here's a sample implementation based on TokenBucket which should do what you want... void handleReadRequestHeadersPreRemap(Transaction& transaction) { std::string host; Headers& headers = transaction.getClientRequest().getHeaders(); Headers::iterator ii = headers.f

Re: transparent proxy

2019-06-23 Thread Dk Jack
Have you enabled ip_forward? Have you disabled rp_filter? Are you seeing > Martian messages in your /bar/log/messages? > > On Sun, Jun 23, 2019, 7:23 PM Dk Jack wrote: > > > Hi, > > I am trying to test ATS in transparent proxy mode. I am using the inline > > linux br

transparent proxy

2019-06-23 Thread Dk Jack
Hi, I am trying to test ATS in transparent proxy mode. I am using the inline linux bridge mode. It doesn't seem to work even though I made the changes as specified in the ATS documentation. My configuration is shown below. The request seems to come to the bridge device, however, the packet is not m

Re: Implementing Rate-limiting in forward proxy mode

2019-06-21 Thread Dk Jack
Uhm! why async timers? You'd want to implement a leaky/token bucket per site. Check out... https://github.com/rigtorp/TokenBucket It's single header file lock free implementation for token bucket and it works very well... On Fri, Jun 21, 2019 at 7:38 PM Weixi Li (BLOOMBERG/ PRINCETON) < wli...@

Re: Implementing Rate-limiting in forward proxy mode

2019-06-21 Thread Dk Jack
I have implemented rate-limit in my plugin using atscppapi. We are using ats in security context for mitigation. If the request matches certain criteria (ip, method, host, uri and header values) then we apply rate-limit to that ip. Dk. > On Jun 21, 2019, at 3:15 PM, Leif Hedstrom wrote: > >

crash debugging.

2019-06-06 Thread Dk Jack
Hi, I am trying to debug a crash I am seeing with 7.1.6. This crash happens with no traffic and my custom plugin enabled. My plugin periodically performs async fetches (using atscppapi) to retrieve data from a remote server. The crash is happening in the continuation handler. When I try to print th

Re: memory leak

2019-06-03 Thread Dk Jack
Opened... https://github.com/apache/trafficserver/issues/5596 and https://github.com/apache/trafficserver/issues/5595 On Mon, Jun 3, 2019 at 1:25 PM Leif Hedstrom wrote: > > > > On Jun 3, 2019, at 2:23 PM, Dk Jack wrote: > > > > Yeah, I tried moving to 7.1.6. Howe

Re: memory leak

2019-06-03 Thread Dk Jack
Yeah, I tried moving to 7.1.6. However, I ran into a couple of crashes with the new releases... Bhasker. On Mon, Jun 3, 2019 at 12:20 PM Leif Hedstrom wrote: > > > > On Jun 2, 2019, at 6:24 PM, Dk Jack wrote: > > > > Thanks Leif for responding, > > > > som

Re: memory leak

2019-06-03 Thread Dk Jack
'-f' option for traffic_server? Thanks. On Sun, Jun 2, 2019 at 5:24 PM Dk Jack wrote: > Thanks Leif for responding, > > some questions... > > How do I turn off the freelist? Could you please elaborate on your RAM > disk reference? In my setup, HTTP cache is turn

Re: memory leak

2019-06-02 Thread Dk Jack
between and compare. There’s a script in > the tools directory that lets you “diff” two such memory usage dumps. > > Cheers, > > — Leif > > > On Jun 2, 2019, at 12:41, Dk Jack wrote: > > > > Does anyone have an idea of how much memory is allocated for processing

Re: memory leak

2019-06-02 Thread Dk Jack
. The memory dumps show it's happening in the ATS code, using ATS allocators. Any help is appreciated. Thanks. On Fri, May 31, 2019 at 3:42 PM Dk Jack wrote: > stats collected via 'traffic_ctl metric ...' commands... > > https://www.dropbox.com/s/fmamnvrk5v1dq82/ats_6.2.

Re: memory leak

2019-05-31 Thread Dk Jack
stats collected via 'traffic_ctl metric ...' commands... https://www.dropbox.com/s/fmamnvrk5v1dq82/ats_6.2.1.txt?dl=0 On Fri, May 31, 2019 at 3:41 PM Dk Jack wrote: > No. I only have healthcheck plugin, stats plugin and my plugin. > > On Fri, May 31, 2019 at 2:45 PM Steve

Re: memory leak

2019-05-31 Thread Dk Jack
No. I only have healthcheck plugin, stats plugin and my plugin. On Fri, May 31, 2019 at 2:45 PM Steve Malenfant wrote: > Do you have stale while revalidation plug-in? If so, disable. > > On Fri, May 31, 2019 at 5:42 PM Dk Jack wrote: > > > Hi, > > I am running ATS 6.2.

memory leak

2019-05-31 Thread Dk Jack
Hi, I am running ATS 6.2.1 and I am seeing memory leaks. The link below shows memory dump graphs for a half-hour period (dump freq is 15s). I have a custom plugin that's using atscppapi. These graphs are from our production setup where the traffic volume is very high (120M+ req.s/day). We are seein

crash 7.1.6

2019-05-24 Thread Dk Jack
Hi, I am running into a crash when using ATS 7.1.6. I have a custom plugin (using atscppapi). I am upgrading from 6.2.3 to 7.1.6. With no changes in my plugin, I see the crash in 7.1.6 but not in 6.2.1 or 6.2.3. The crash does not happen in 7.1.6 when my plugin is disabled. Has there been a change

Re: http stats

2019-04-04 Thread Dk Jack
d definitely be changed. > > -Bryan > > > >> On Apr 3, 2019, at 9:19 PM, Dk Jack wrote: >> >> Hi, >> I see this comment in records.config >> >>

http stats

2019-04-03 Thread Dk Jack
Hi, I see this comment in records.config ## # The HTTP stats are expensive, turn off you don't need them # ## CONFIG proxy.config.http.enable_http_stats INT 0 Are there any actu

Re: memory leak

2019-03-08 Thread Dk Jack
;d like it to be independent of the Transaction since I am using Async to update my plugin maps. Thanks. On Thu, Mar 7, 2019 at 6:39 PM Dk Jack wrote: > I narrowed down my problem to the async fetcher class which is derived > from AsyncReceiver class. > In my plugin, I maintain a

Re: memory leak

2019-03-07 Thread Dk Jack
ke a look at my implementation and let me know I am using the API incorrectly. Thank you. On Tue, Mar 5, 2019 at 10:52 AM Dk Jack wrote: > Thanks Leif, > I'd like to understand a bit more before introducing another variable. The > thing that puzzles me the most is why th

Re: memory leak

2019-03-05 Thread Dk Jack
ing down this rathole, I’d give v7.1.6 or v8.0.2 a spin. > Remember, v6.x is an unsupported version, there is no more development nor > any more releases. > > Cheers, > > — Leif > > > On Mar 4, 2019, at 20:00, Dk Jack wrote: > > > > I am using atsc

Re: memory leak

2019-03-04 Thread Dk Jack
pTxnClientReqBodyBytesGet(txnp)); > TSHandleMLocRelease(buffer, TS_NULL_MLOC, hdr_loc); > buffer = nullptr; > } > > > On Mon, Mar 4, 2019 at 6:06 PM Dk Jack wrote: > > > Thanks Pushkar, I'll try that... > > > > On Mon, Mar 4, 2019 at 4:44

Re: memory leak

2019-03-04 Thread Dk Jack
btw, do I need to link it with any additional libraries to use lsan? Thanks. On Mon, Mar 4, 2019 at 6:05 PM Dk Jack wrote: > Thanks Pushkar, I'll try that... > > On Mon, Mar 4, 2019 at 4:44 PM Pushkar Pradhan > wrote: > >> Perhaps compiling with LSAN will help: --en

Re: memory leak

2019-03-04 Thread Dk Jack
c > > > > -Bryan > > > > > On Mar 4, 2019, at 3:50 PM, Dk Jack wrote: > > > > > > Hi, > > > I am trying to chase a memory leak issue. I am using ATS version 6.2.3 > > and > > > I have a custom plugin written using the c++ API (

Re: memory leak

2019-03-04 Thread Dk Jack
yan > > > On Mar 4, 2019, at 3:50 PM, Dk Jack wrote: > > > > Hi, > > I am trying to chase a memory leak issue. I am using ATS version 6.2.3 > and > > I have a custom plugin written using the c++ API (atscppapi) running on > the > > same server. I enab

memory leak

2019-03-04 Thread Dk Jack
Hi, I am trying to chase a memory leak issue. I am using ATS version 6.2.3 and I have a custom plugin written using the c++ API (atscppapi) running on the same server. I enabled memory dump in my configuration and sent traffic into the ATS with and without my plugin for an hour. Later, I extracted

Re: conn. throttling.

2018-11-26 Thread Dk Jack
on, Nov 26, 2018 at 6:55 AM Alan Carroll wrote: > It's a bug in the documentation. The value was originally 1, but was > changed to 3 in commit 879bedceb without updating the explanatory text. > > On Fri, Nov 23, 2018 at 1:19 PM Dk Jack wrote: > > > H

conn. throttling.

2018-11-23 Thread Dk Jack
Hi, I am trying to understand the config.net.connections_throttle configuration shown below. The documentation says roughly 10% of the connections are reserved for origin server connections. If the default was setting is 30,000, how does it arrive at the 9000 number for client connections (assuming

Re: ssl handshake failure

2018-11-04 Thread Dk Jack
Thanks Pushkar. I had a config error in my multi cert config file. I was missing ‘dest_ip=*’ Dk. > On Nov 2, 2018, at 11:53 AM, Pushkar Pradhan > wrote: > > Is your client sending a TLSv1.2 handshake? Maybe it's a lower version or > non TLS. > >> On Fri, No

Re: ssl handshake failure

2018-11-02 Thread Dk Jack
t the SNI. > > On Fri, Nov 2, 2018 at 3:50 PM Dk Jack wrote: > > > Hi Alan, > > Thanks for responding. I've pasted the output from openssl s_client. I > > don't understand the error it's giving because I can see in the ATS > loading > > my certi

Re: ssl handshake failure

2018-11-02 Thread Dk Jack
at 12:24 PM Alan Carroll wrote: > I'd start with "openssl s_client" to get more debug information, followed > possibly by a packet capture to be sure the user agent is connecting with > TLS to a TLS enabled proxy port. > > On Fri, Nov 2, 2018 at 1:41 PM Dk Jack

ssl handshake failure

2018-11-02 Thread Dk Jack
Hi, I enabled SSL on my ATS and my ssl requests are failing with handshake error. From the logs I can tell that it loaded my cert/key correct. When I started traffic server in debug mode (./traffic_server -T ssl), I am seeing the following error SSL routines:ssl3_get_client_hello:no shared cipher

Re: error log

2018-10-31 Thread Dk Jack
to 10.101.3.142"). Therefore it was a TCP or TLS level > failure due to a lack of response from the upstream. > > As far as I know you cannot change the date format for error messages. > > On Wed, Oct 31, 2018 at 1:29 AM Dk Jack wrote: > > > Hi, > > I am trying t

error log

2018-10-30 Thread Dk Jack
Hi, I am trying to understand what the following error messages mean. 20181030.12h21m55s CONNECT: could not connect to 10.101.3.142 for 'http:// ' (setting last failure time) 20181030.12h21m55s RESPONSE: sent 10.101.1.156 status 504 (Connectio

Re: hostdb question

2018-10-18 Thread Dk Jack
NT 3 >> proxy.config.hostdb.timeout INT 10 >> >> >> >> https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/files/records.config.en.html?highlight=ttl_mode#proxy.config.hostdb.ttl_mode >> >> >> I hope that helps. >> >>>

Re: hostdb question

2018-10-18 Thread Dk Jack
0 > > > https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/files/records.config.en.html?highlight=ttl_mode#proxy.config.hostdb.ttl_mode > > > I hope that helps. > >> On Wed, Oct 17, 2018 at 4:15 PM Dk Jack wrote: >> >> Hi, >> I am looking

hostdb question

2018-10-17 Thread Dk Jack
Hi, I am looking at the hostdb configuration and I need some clarification on the configuration. In particular I have questions about these two configuration parameters. proxy.config.hostdb.host_file.path proxy.config.hostdb.strict_round_robin I am trying to understand how hostdb round_robin conf

Re: ssl session cache timeout

2018-10-10 Thread Dk Jack
he > Traffic Server session cache (option 2 in proxy.config.ssl.session_cache)" > is incorrect and should be removed from our docs. > > On Tue, Oct 9, 2018 at 9:09 PM Dk Jack wrote: > > > Hi, > > I am trying to understand the ssl cache timeout in ATS. According to the

ssl session cache timeout

2018-10-09 Thread Dk Jack
Hi, I am trying to understand the ssl cache timeout in ATS. According to the documentation for proxy.config.ssl.session_cache, a default value of 2 is chosen if its not configured. For proxy.config.ssl.session_cache.timeout, a default value of 0 is chosen, if its not configured which means ssl cach

Re: remap based on source IP or destination port

2018-09-28 Thread Dk Jack
way I want. Otherwise, I’ll have to live with this. Thanks again. > On Sep 28, 2018, at 10:06 AM, Leif Hedstrom wrote: > > > >> On Sep 27, 2018, at 10:31 PM, Dk Jack wrote: >> >> Hi, >> I need to remap incoming traffic from a specific IP (connection IP)

Re: remap based on source IP or destination port

2018-09-28 Thread Dk Jack
gex_remap line and "override" the remap rule result as > needed. I haven't use map_with_recv_port so I can't say if it could be made > to work. You might try testing that with the debug tag 'http|url_rewrite' > and see what shows up. > >> On Thu, Sep 27, 2018

remap based on source IP or destination port

2018-09-27 Thread Dk Jack
Hi, I need to remap incoming traffic from a specific IP (connection IP) or traffic that is received on a specific port i.e ATS listening/server port to be sent to a specific IP+port. Distribute incoming traffic to multiple sites based on source-ip or listening port. For example, I want to do someth

Re: logging

2018-08-22 Thread Dk Jack
Hi Bryan, Nishant helped me out with the config. I have it working now. Thanks. > On Aug 22, 2018, at 11:22 AM, Bryan Call wrote: > > What does your logging configuration file look like (logging.config)? > > -Bryan > > > >> On Aug 8, 2018, at 12:01 PM, Dk Ja

logging

2018-08-08 Thread Dk Jack
Hi, In my records.config, I configured my logging as: CONFIG proxy.config.log.logging_enabled INT 3 However, I don't see the access log file being written when I send request. Is there some additional config that I need to do? I am using ATS version 6.2.1. Thanks for you help. Regards, Dk.

Re: txn depth

2018-04-19 Thread Dk Jack
Yeah, I tracked it to the same after looking at how sstc was getting updated. Thanks. > On Apr 19, 2018, at 3:02 PM, Alan Carroll > wrote: > > Look at TSHttpSsnTransactionCount().

Re: txn depth

2018-04-19 Thread Dk Jack
or inbound, which IMHO should be fixed, > because the count is actually tracked, it's just not available for logging. > >> On Thu, Apr 19, 2018 at 1:53 PM, Dk Jack wrote: >> >> Alan, >> Perhaps I am using the wrong term. Here’s what I mean by transaction &g

Re: txn depth

2018-04-19 Thread Dk Jack
outbound connection. > >> On Thu, Apr 19, 2018 at 12:11 PM, Dk Jack wrote: >> >> Hi, >> Is it possible to get the transaction depth for an HTTP transaction? >> Thanks. >> >> Dk. >>

txn depth

2018-04-19 Thread Dk Jack
Hi, Is it possible to get the transaction depth for an HTTP transaction? Thanks. Dk.

traffic stats.

2018-03-27 Thread Dk Jack
Hi, Are the traffic stats persistent? I am using 'traffic_ctl metric get/match' commands to query the statistics. Even after restarting, the numbers do not change. Tried the following... ./traffic_ctl metric clear ./traffic_ctl metric zero These did not help either. Trying to debug some weird is

close

2018-01-19 Thread Dk Jack
Hi, I am trying to understand the ATS behavior when it receives a close from the client. I would appreciate it if someone can point me in the code where to start looking at to understand the behavior. Thanks. Dk.

cache inspector.

2017-12-11 Thread Dk Jack
Hi, I am trying to configure cache inspector to see what's in the cache. I've configured the following: records.config: CONFIG proxy.config.http_ui_enabled INT 1 remap.config: map http://10.3.12.71/myci http://{cache}/ @src_ip=10.3.20.120 @action=allow when I try to access the 'myci' page, I see

Re: [API Proposal] - TSVConnArgs

2017-11-14 Thread Dk Jack
I concur with the idea that connection level APIs should be different from the HTTP txn or ssn level APIs. For my use case, I am saving attributes at the connection level and accessing them during HTTP txn processing. On Tue, Nov 14, 2017 at 6:11 AM, Alan Carroll < solidwallofc...@oath.com.invalid

Re: ssl conn and http

2017-11-07 Thread Dk Jack
All, I've created a PR to address issue #2380 (Missing ssl session close hook) and #2388 (Ability to add contextual data on (Net)VConnections). Would appreciate a review. The PR includes includes API documentation as well for #2388 and hence would appreciate a review for the documentation as well.

Re: ssl conn and http

2017-10-09 Thread Dk Jack
Never mind, I figured out the issue. Please ignore... thanks. On Mon, Oct 9, 2017 at 5:13 PM, Dk Jack wrote: > Alan, > I've been working on the issues we discussed. I have most of it working. > I've added two things: > > - Allow plugins to add user data to conn. &g

Re: ssl conn and http

2017-10-09 Thread Dk Jack
linked from the issue I mentioned > above. It's about the same thing - plugin wants to attach data during TLS > handshake for later retrieval at the HTTP level that can be cleaned up if > something goes wrong. > > On Wed, Sep 27, 2017 at 4:29 PM, Dk Jack wrote: > > > Yeah,

std::vector.

2017-10-06 Thread Dk Jack
Hi, I am looking to make some changes in traffic-server code (iocore specifically). Would it be ok to use STL stuff such as std::vector/string etc? Dk.

Re: ssl conn and http

2017-09-27 Thread Dk Jack
Yeah, I was thinking along similar lines... Do you think, it'd be a worth while effort to add a ssl-close event hook? On Wed, Sep 27, 2017 at 1:31 PM, Alan Carroll < solidwallofc...@oath.com.invalid> wrote: > I'd probably put a time stamp in and update it during the hook processing. > If you wai

Re: ssl conn and http

2017-09-27 Thread Dk Jack
I did try to see if there was a n openssl hook that gets invoked when the connection is closed. However, I couldn't find one. I guess it doesn't make sense to have one from openssl perspective since connection close is is always initiated by the application. What I need is a i.e a callback from SS

Re: ssl conn and http

2017-09-26 Thread Dk Jack
(from > which you can get to the same TSNetVConn). Currently I can't suggest > anything better than making your own global table of TSNetVConn -> SSL > information which admittedly is painful. > > On Mon, Sep 25, 2017 at 9:31 PM, Dk Jack wrote: > > > Hi, >

ssl conn and http

2017-09-25 Thread Dk Jack
Hi, I am adding a hook to get access to the ssl handshake data. I am using something like: TSHttpHookAdd(TS_SSL_CERT_HOOK, cb_cert); In the ssl callback, I am extracting some info from the ssl connection and I'd like to save the info. I'd like to later retrieve this info when my Http hook call ba

Re: ATS 6.2.1 crash

2017-08-02 Thread Dk Jack
Opened a new issue... https://github.com/apache/trafficserver/issues/2327 On Wed, Aug 2, 2017 at 4:25 PM, Dk Jack wrote: > call_event = core_lock_retry event.. > > bt full output below... I'll go ahead and file a GitHub issue. Thanks. > > > #5 0x2b8a

Re: ATS 6.2.1 crash

2017-08-02 Thread Dk Jack
call_event from that stack frame (#5)? Maybe > also do a `bt full` and see if anything interesting falls out of that. > > Thanks. > > On Wed, Aug 2, 2017 at 1:38 PM Dk Jack wrote: > > > Will do. > > > > Even though this happened twice in our environment, I don&

Re: ATS 6.2.1 crash

2017-08-02 Thread Dk Jack
o that for you. > If this is still broken in the 6.2.2 RC0 we can stop the vote and figure > out a fix depending on the severity. > > Thanks. > >> On Wed, Aug 2, 2017 at 12:11 AM Dk Jack wrote: >> >> Btw, this crash happened on 6.2.1. >> >> Ple

Re: ATS 6.2.1 crash

2017-08-01 Thread Dk Jack
Btw, this crash happened on 6.2.1. Please let me know if this is not the correct forum for these sort of questions. Thanks. > On Jul 31, 2017, at 11:15 AM, Dk Jack wrote: > > Hi, > I am seeing an ATS crash. The stack trace and the crash log info for the > crash are pasted

ATS 6.2.1 crash

2017-07-31 Thread Dk Jack
Hi, I am seeing an ATS crash. The stack trace and the crash log info for the crash are pasted below. Seems to be happening in PluginVC::main_handler line 216. I would appreciate it if someone can comment on possible reasons for this crash? Thanks. D. [Thread debugging using libthread_db enabled]

too many error messages

2017-06-05 Thread Dk Jack
Hi, I am seeing the following error messages after upgrading to ATS version 6.2.1 from 6.0.0. I get these messages even in I disable cache. I am using ATS in reverse proxy mode. Is there a configuration which will disable these error messages. Also, I am seeing DNS lookup errors for 'myhost' when

Re: atscppapi: AsyncHttpFetch question

2017-03-22 Thread Dk Jack
omatically * self-destructs after the completion of the request. * * See example async_http_fetch{,_streaming} for sample usage. */ class AsyncHttpFetch : public AsyncProvider { ... } On Wed, Mar 22, 2017 at 1:37 PM, Dk Jack wrote: > Hi, > In the file lib/atscppapi/examples/

atscppapi: AsyncHttpFetch question

2017-03-22 Thread Dk Jack
Hi, In the file lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc, there is this code: --- // we'll add some custom headers for this request AsyncHttpFetch2 *provider2 = new AsyncHtt

Re: atscppapi question

2016-05-27 Thread Dk Jack
Alan, I have web-server behind ats. I was trying print various request attributes in my plugin. curl -v showed that it's sending the correct headers. I even collected tcpdump of the exchange and I see the complete URL being sent. The host header has the correct info. When I use the getHost API

atscppapi question

2016-05-26 Thread Dk Jack
Hi, I am using atscppapi in my plugin. I send a curl request as follows to ATS: curl 'http://localhost:8080/abcdef?a=1&b=2' In my plugin code, in handleReadRequestHeadersPreRemap function, I am printing the following: logInfo("effective-url: %s", txn.getEffectiveUrl().c_str()); ClientReques

ssl

2016-04-07 Thread Dk Jack
Hi, Is there a way to get access to ssl handshake data in a plugin? I see there's an SNI plugin. I am looking to some data from client hello, ssl hello extensions etc... Bhasker.

https

2016-03-26 Thread Dk Jack
Does atscppapi::AsyncFetch support output https connections? Haven't tried it yet. The documentation is not clear if its supported or not. Thanks. -D

Re: Intercept Plugin

2016-03-15 Thread Dk Jack
ot; logs seem indicate > that ATS itself is acting as parent/origin for some urls, maybe you should > take a deeper look at your config files. > > > > -Original Message- > From: Dk Jack [mailto:dnj0...@gmail.com] > Sent: lunedì 14 marzo 2016 20:15 > To: dev@traffic

Re: Intercept Plugin

2016-03-14 Thread Dk Jack
is there another way where the TS (or plugin in TS) can act as a server? thx. On Mon, Mar 14, 2016 at 12:15 PM, Dk Jack wrote: > Hi Alan, > I tried to add a remap rule like this: > > regex_map http://(.*)/(.*) http://$1/$2 > > I still get the following error: > > 201

Re: Intercept Plugin

2016-03-14 Thread Dk Jack
Hi Alan, I tried to add a remap rule like this: regex_map http://(.*)/(.*) http://$1/$2 I still get the following error: 20160314.19h04m03s RESPONSE: sent 127.0.0.1 status 404 (Not Found on Accelerator) for 'http://.' So I tried your suggestion #2 and set the remap_required to 0 (didn't wan

Re: Intercept Plugin

2016-03-13 Thread Dk Jack
no luck. I am still stuck with the same error... 20160314.02h43m20s RESPONSE: sent 127.0.0.1 status 404 (Not Found on Accelerator) for 'http://...' Since it cannot find a remap rule, it never invokes the HOOK_SEND_REQUEST_HEADERS hook. As a result, my custom plugin never gets invoked. I was runni

Re: Intercept Plugin

2016-03-13 Thread Dk Jack
ed to stream a response. > > Brian > > On Monday, March 14, 2016, Dk Jack wrote: > > > custom error message plugin doesn't seem to include body. I wanted to > > include body as well... > > > > Bhasker. > > > > > > On Sun, Mar 13, 2016 a

Re: Intercept Plugin

2016-03-13 Thread Dk Jack
27;s much easier, > > Brian > > On Monday, March 14, 2016, Dk Jack wrote: > > > Hi, > > I am using atscppapi intercept Plugin. Does it still require a remap rule > > if I am using SERVER_INTERCEPT type. I just want to respond with a custom > > response if I see a specific url. Thanks. > > > > Dk. > > >

Intercept Plugin

2016-03-13 Thread Dk Jack
Hi, I am using atscppapi intercept Plugin. Does it still require a remap rule if I am using SERVER_INTERCEPT type. I just want to respond with a custom response if I see a specific url. Thanks. Dk.

Re: atscppapi question

2016-03-10 Thread Dk Jack
Sudheer, Any other suggestions I can try? Thanks. On Wed, Mar 9, 2016 at 1:41 PM, Dk Jack wrote: > There is no remap rule, since this is internally generated > traffic TSSkipRemappingSet is set. > > > On Wed, Mar 9, 2016 at 1:02 PM, Sudheer Vinukonda < > sudhe...@yahoo-i

Re: atscppapi question

2016-03-09 Thread Dk Jack
e remap rule. > Thanks, > Sudheer > > On Wednesday, March 9, 2016 12:43 PM, Dk Jack > wrote: > > > Hi, > I am using atscppapi in my plugin. Specifically, I am using AsyncHttpFetch > api. > When I use the AsyncHttpFetch with a regular url say like ' > ht

atscppapi question

2016-03-09 Thread Dk Jack
Hi, I am using atscppapi in my plugin. Specifically, I am using AsyncHttpFetch api. When I use the AsyncHttpFetch with a regular url say like ' http://www.foo.com:/' it works. However, if I use the fetch api with a url that includes query args i.e. ' http://www.foo.com:/?name=jdoe' the requ

Re: remap for internal connections.

2016-02-12 Thread Dk Jack
:( Doesn't seem to work. I am calling TSSkipRemappingSet in the PRE_MAP hook. Is that too late for this setting? On Fri, Feb 12, 2016 at 6:13 PM, Dk Jack wrote: > Thanks Sudheer! > > On Fri, Feb 12, 2016 at 6:06 PM, Sudheer Vinukonda < > sudhe...@yahoo-inc.com.invalid&

Re: remap for internal connections.

2016-02-12 Thread Dk Jack
::setSkipRemapping(). > https://issues.apache.org/jira/browse/TS-4016 > > Thanks, > Sudheer > > > > On Friday, February 12, 2016, 5:55 PM, Dk Jack wrote: > > Hi, > I am using atscppapi to create my plugin. My plugin spawns a thread and > periodically fetches > da

remap for internal connections.

2016-02-12 Thread Dk Jack
Hi, I am using atscppapi to create my plugin. My plugin spawns a thread and periodically fetches data from an external server. I am using the AsyncHttpFetch atscppapi which internally seems to use the TSFetchUrl. When I pass my external url to the AsyncHttpFetch api, my connection to the external s

std library

2016-01-28 Thread Dk Jack
Hi, I am using atscppapi to write my plugin. Can I use std::thread or should still use the low level TSThreadCreate for creating threads in my plugin? Thanks. Dnj

backtrace

2016-01-21 Thread Dk Jack
Hi, I am a newbie to ATS and I am trying to write a plugin. My plugin is crashing... and the crashlog has this message "Unable to retrieve backtrace: [6] Error reading from socket." I have installed libunwind8 and libunwind8-dev on my build machine and the target machine. I see the following lin

  1   2   >