You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by "Earle, Erik" <Er...@disney.com> on 2011/04/20 22:16:34 UTC

using curl during an http transaction

Hi all.   I'm new to the list and trafficserver.

I'm building a plugin to do OAuth 2.  I'm looking to make a call to a separate (REST) service to do the OAuth token validation.

Does anyone have experience with using something like curl or vconnections, etc... to make a separate http request during an http transaction?


Re: Antw: Re: ATS 2.1.7 shutdown die with segmentation fault

Posted by Sascha Klose <Sa...@cewecolor.de>.
Hi Leif,

ok, that's the goal.
I've compiled the last trunk and I've the same problem with ATS
shutdown (stops with seg fault and "No such file or directory")

Bye

Sascha

>>> "Leif Hedstrom" <zw...@apache.org> 26.04.2011 12:19 >>>
Sascha Klose wrote:
> Hi Leif,
>
> I don't know to use SVN, but I install SVN, checkout the source and
> read the INSTALL:
>
> svn co http://svn.apache.org/repos/asf/trafficserver/ 
> cd trafficserver/traffic/trunk
> autoreconf -i
> configure.ac:452: error: possibly undefined macro: AC_PROG_LIBTOOL
>       If this token and others are legitimate, please use
> m4_pattern_allow.
>       See the Autoconf documentation.

I believe that means you need to install the appropriate libtool
packages
for your Linux distribution. There are some instructions for that on
the
Confluence Wiki build pages I think.

Cheers,

-- leif




___________________________________________________________________

OHG mit Sitz in Oldenburg; Registergericht Oldenburg HR A 1548;

persönlich haftende geschäftsführende Gesellschafterin: Neumüller CeWe
Color Stiftung, Oldenburg
Vorstand: Dr. Rolf Hollander, Vorsitzender;
Harald H. Pirwitz, Felix Thalmann, Frank Zweigle, Dr. Michael Fries;
Geschäftsführer: Dr. Reiner Fageth, Thomas Grunau,
Andreas F.L. Heydemann, Dr. Olaf Holzkämper


Persönlich haftende Gesellschafterin: CeWe Color Holding AG, Oldenburg,
Registergericht Oldenburg HR B 2956
Vorstand: Dr. Rolf Hollander, Vorsitzender;
Andreas F.L. Heydemann, Dr. Reiner Fageth, Dr. Olaf Holzkämper
Aufsichtsrat: Hubert Rothärmel, Vorsitzender

Re: Antw: Re: ATS 2.1.7 shutdown die with segmentation fault

Posted by Leif Hedstrom <zw...@apache.org>.
Sascha Klose wrote:
> Hi Leif,
>
> I don't know to use SVN, but I install SVN, checkout the source and
> read the INSTALL:
>
> svn co http://svn.apache.org/repos/asf/trafficserver/
> cd trafficserver/traffic/trunk
> autoreconf -i
> configure.ac:452: error: possibly undefined macro: AC_PROG_LIBTOOL
>       If this token and others are legitimate, please use
> m4_pattern_allow.
>       See the Autoconf documentation.

I believe that means you need to install the appropriate libtool packages
for your Linux distribution. There are some instructions for that on the
Confluence Wiki build pages I think.

Cheers,

-- leif



Antw: Re: ATS 2.1.7 shutdown die with segmentation fault

Posted by Sascha Klose <Sa...@cewecolor.de>.
Hi Leif,

I don't know to use SVN, but I install SVN, checkout the source and
read the INSTALL:

svn co http://svn.apache.org/repos/asf/trafficserver/
cd trafficserver/traffic/trunk
autoreconf -i
configure.ac:452: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use
m4_pattern_allow.
      See the Autoconf documentation.

Bye
Sascha




>>> Leif Hedstrom <zw...@apache.org> 21.04.2011 15:21 >>>
On 04/20/2011 11:19 PM, Sascha Klose wrote:
> Hi,
>
> every time I shutdown the ATS 2.1.7 (with the shell script
> "trafficserver", it stop with a segmentation fault and a "last
system
> error 2: No such file or directory"

Can you try latest trunk and see if that fixes it? We've made a lot of

fixes lately, and I want to make sure this isn't one of them. :)

-- leif


___________________________________________________________________________________________________
CEWE FOTOBUCH. Ihre Fotos als echtes Buch. Ab 7,95 €*

Europas beliebtestes Fotobuch jetzt mit den folgenden Neuheiten:

CEWE FOTOBUCH Compact Panorama: Trendiges CEWE FOTOBUCH im Format von
ca. 19 x 15 cm mit individuell gestaltbarem Einband (Hardcover,
Softcover, Heft). 

CEWE FOTOBUCH mit Hochglanz-Veredelung: Eine spezielle hochglänzende
Beschichtung der Innenseiten lässt die Fotos in Ihrem CEWE FOTOBUCH
jetzt besonders erstrahlen. 

Mehr Informationen finden Sie auf www.cewe-fotobuch.de.



*unverbindliche Preisempfehlung für ein CEWE FOTOBUCH Klein mit 26
Seiten gemäß Preisliste inkl. MwSt. zzgl. Bearbeitungspauschale und
evtl. anfallender Versandkosten
___________________________________________________________________

OHG mit Sitz in Oldenburg; Registergericht Oldenburg HR A 1548;

persönlich haftende geschäftsführende Gesellschafterin: Neumüller CeWe
Color Stiftung, Oldenburg
Vorstand: Dr. Rolf Hollander, Vorsitzender;
Harald H. Pirwitz, Felix Thalmann, Frank Zweigle, Dr. Michael Fries;
Geschäftsführer: Dr. Reiner Fageth, Thomas Grunau,
Andreas F.L. Heydemann, Dr. Olaf Holzkämper


Persönlich haftende Gesellschafterin: CeWe Color Holding AG, Oldenburg,
Registergericht Oldenburg HR B 2956
Vorstand: Dr. Rolf Hollander, Vorsitzender;
Andreas F.L. Heydemann, Dr. Reiner Fageth, Dr. Olaf Holzkämper
Aufsichtsrat: Hubert Rothärmel, Vorsitzender

Re: ATS 2.1.7 shutdown die with segmentation fault

Posted by Leif Hedstrom <zw...@apache.org>.
On 04/20/2011 11:19 PM, Sascha Klose wrote:
> Hi,
>
> every time I shutdown the ATS 2.1.7 (with the shell script
> "trafficserver", it stop with a segmentation fault and a "last system
> error 2: No such file or directory"

Can you try latest trunk and see if that fixes it? We've made a lot of 
fixes lately, and I want to make sure this isn't one of them. :)

-- leif


ATS 2.1.7 shutdown die with segmentation fault

Posted by Sascha Klose <Sa...@cewecolor.de>.
Hi,

every time I shutdown the ATS 2.1.7 (with the shell script
"trafficserver", it stop with a segmentation fault and a "last system
error 2: No such file or directory"

Here is the log:

===Cut===
[TrafficManager] ==> Cleaning up and reissuing signal #3
[Apr 20 07:34:47.024] Manager {140694417131248} ERROR: [TrafficManager]
==> Cleaning up and reissuing signal #3
[Apr 20 07:34:47.024] Manager {140694417131248} ERROR:  (last system
error 2: No such file or directory)
NOTE: Traffic Server received Sig 3: Quit
/PRODUCTION/trafficserver/trafficserver-2.1.7-unstable/bin/traffic_server
- STACK TRACE:
NOTE: Traffic Server received Sig 11: Segmentation fault
/PRODUCTION/trafficserver/trafficserver-2.1.7-unstable/bin/traffic_server
- STACK TRACE:
[E. Mgmt] log ==> [TrafficManager] using root directory
'/PRODUCTION/trafficserver/trafficserver-2.1.7-unstable'
===Cut===

I've compiled ATS 2.1.7 with Debian Lenny:


VERSION=2.1.7-unstable
./configure \
        --prefix=/PRODUCTION/trafficserver/trafficserver-$VERSION \
        --exec-prefix=/PRODUCTION/trafficserver/trafficserver-$VERSION
\
        --with-user=nobody \
        --with-group=nogroup \
make
make install


Any ideas?


Bye

Sascha Klose



___________________________________________________________________________________________________
CEWE FOTOBUCH. Ihre Fotos als echtes Buch. Ab 7,95 €*

Europas beliebtestes Fotobuch jetzt mit den folgenden Neuheiten:

CEWE FOTOBUCH Compact Panorama: Trendiges CEWE FOTOBUCH im Format von
ca. 19 x 15 cm mit individuell gestaltbarem Einband (Hardcover,
Softcover, Heft). 

CEWE FOTOBUCH mit Hochglanz-Veredelung: Eine spezielle hochglänzende
Beschichtung der Innenseiten lässt die Fotos in Ihrem CEWE FOTOBUCH
jetzt besonders erstrahlen. 

Mehr Informationen finden Sie auf www.cewe-fotobuch.de.



*unverbindliche Preisempfehlung für ein CEWE FOTOBUCH Klein mit 26
Seiten gemäß Preisliste inkl. MwSt. zzgl. Bearbeitungspauschale und
evtl. anfallender Versandkosten
___________________________________________________________________

OHG mit Sitz in Oldenburg; Registergericht Oldenburg HR A 1548;

persönlich haftende geschäftsführende Gesellschafterin: Neumüller CeWe
Color Stiftung, Oldenburg
Vorstand: Dr. Rolf Hollander, Vorsitzender;
Harald H. Pirwitz, Felix Thalmann, Frank Zweigle, Dr. Michael Fries;
Geschäftsführer: Dr. Reiner Fageth, Thomas Grunau,
Andreas F.L. Heydemann, Dr. Olaf Holzkämper


Persönlich haftende Gesellschafterin: CeWe Color Holding AG, Oldenburg,
Registergericht Oldenburg HR B 2956
Vorstand: Dr. Rolf Hollander, Vorsitzender;
Andreas F.L. Heydemann, Dr. Reiner Fageth, Dr. Olaf Holzkämper
Aufsichtsrat: Hubert Rothärmel, Vorsitzender

RE: using curl during an http transaction

Posted by "Earle, Erik" <Er...@Disney.com>.
Is there an example usage of TSHttpConnect somewhere?  I did not see any in the examples.


--
Erik Earle     206.664.4016     tie line: 8.664.4016     erik.earle@disney.com<ma...@disney.com>
Walt Disney Connected and Advanced Technologies
925 4th Ave - Suite 1600 - Seattle - 98104

From: Leif Hedstrom [mailto:zwoop@apache.org]
Sent: Wednesday, April 20, 2011 2:33 PM
To: users@trafficserver.apache.org
Cc: Earle, Erik
Subject: Re: using curl during an http transaction

On 04/20/2011 02:16 PM, Earle, Erik wrote:
Hi all.   I'm new to the list and trafficserver.

I'm building a plugin to do OAuth 2.  I'm looking to make a call to a separate (REST) service to do the OAuth token validation.

Does anyone have experience with using something like curl or vconnections, etc... to make a separate http request during an http transaction?


You want to use the appropriate APIs that we provide to perform HTTP requests, e.g. TSNetConnect() or TSHttpConnect().

-- leif

Re: using curl during an http transaction

Posted by Leif Hedstrom <zw...@apache.org>.
On 04/20/2011 02:16 PM, Earle, Erik wrote:
>
> Hi all.   I'm new to the list and trafficserver.
>
> I'm building a plugin to do OAuth 2.  I'm looking to make a call to a 
> separate (REST) service to do the OAuth token validation.
>
> Does anyone have experience with using something like curl or 
> vconnections, etc... to make a separate http request during an http 
> transaction?
>

You want to use the appropriate APIs that we provide to perform HTTP 
requests, e.g. TSNetConnect() or TSHttpConnect().

-- leif