RE: [WebDNA] tcp connect is slow...any ways to speed it up?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100565
interpreted = N
texte = Thanks TC. Very helpful.-----Original Message-----From: Toby Cox [mailto:toby.cox@netro42.com] Sent: Tuesday, August 19, 2008 1:02 AMTo: talk@webdna.usSubject: Re: [WebDNA] tcp connect is slow...any ways to speed it up?taking out port number (ie [tcpconnect host=epunahou.punahou.edu&ssl=T) reduces it to 20 seconds, which isn't acceptableyou could try curling it, like so...[text]time1=[ELAPSEDTIME][/text][text]crlf=[unurl]%0D%0A[/unurl][/text][text]temp=[/text][text]temp=[shell]curl"https://epunahou.punahou.edu/cas/serviceValidate?ticket=myticketnumber&service=http://www.kh.org/api/ "[/shell][/text][text]time2=[ELAPSEDTIME][/text]this took [math]([time2]-[time1])/60[/ math][temp]that reduces time to 2.4 secondsI suspect it is something to do with the way the server (epunahou.punahou.edu) is treating the TCP request, as I have done many a TCP connect to secure servers without this problem.Hope this helpsTCOn 19 Aug 2008, at 11:40, Olin Lagon wrote:> Thanks TC. Actually, the URL I am trying to parse is>>https://epunahou.punahou.edu/cas/serviceValidate?ticket=myticketnumber&servi> ce=http://www.kh.org/api/>> Here is the code I am using that takes 60 secs from a windows vista > machine> (core2, high speed DSL, 4 gigs ram, etc.).>> [text]crlf=[unurl]%0D%0A[/unurl][/text]> [text]temp=[/text]> [text]temp=[tcpconnect host=epunahou.punahou.edu&port=443&ssl=T] > [tcpsend> skipheader=t][!]> [/!]GET> /cas/serviceValidate?ticket=myticketnumber&service=http://www.kh.org/api/> HTTP/1.1[crlf][!]> [/!]Host: epunahou.punahou.edu[crlf][crlf][!]> [/!][/tcpsend][/tcpconnect][/text]>> Is it the SSL that takes it to a crawl? By the way, the above should > return> an XML doc with an error.>> Thanks, Olin>> -----Original Message-----> From: Toby Cox [mailto:toby.cox@netro42.com]> Sent: Tuesday, August 19, 2008 12:15 AM> To: talk@webdna.us> Subject: Re: [WebDNA] tcp connect is slow...any ways to speed it up?>> using the exact code below I am getting times of 0.35 to> www.sproutbuilder.com> (which seems to be just a 301 page). What machine are you using?> What is your connection speed?>>> TC>>> On 19 Aug 2008, at 11:02, Olin Lagon wrote:>>> Aloha all, trying to use tcpconnect to download some files. It seems>> like each url takes 20 seconds (both windows and linux, webdna v6).>> I am using code like this>>>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [text]temp=[/text]>> [text]temp=[tcpconnect host=www.sproutbuilder.com][tcpsend>> skipheader=t][!]>> [/!]GET / HTTP/1.1[crlf][!]>> [/!]Host: www.sproutbuilder.com[crlf][crlf][!]>> [/!][/tcpsend][/tcpconnect][/text]>>>> Anyone have any tips? Using PHP and curl these pages get downloaded>> super fast.>>>> Thanks, Olin>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: >> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to:
Associated Messages, from the most recent to the oldest:
Thanks TC. Very helpful.-----Original Message-----From: Toby Cox [mailto:toby.cox@netro42.com] Sent: Tuesday, August 19, 2008 1:02 AMTo: talk@webdna.usSubject: Re: [WebDNA] tcp connect is slow...any ways to speed it up?taking out port number (ie [tcpconnect host=epunahou.punahou.edu&ssl=T) reduces it to 20 seconds, which isn't acceptableyou could try curling it, like so...[text]time1=[elapsedtime][/text][text]crlf=[unurl]%0D%0A[/unurl][/text][text]temp=[/text][text]temp=[shell]curl"https://epunahou.punahou.edu/cas/serviceValidate?ticket=myticketnumber&service=http://www.kh.org/api/ "[/shell][/text][text]time2=[elapsedtime][/text]this took [math]([time2]-[time1])/60[/ math][temp]that reduces time to 2.4 secondsI suspect it is something to do with the way the server (epunahou.punahou.edu) is treating the TCP request, as I have done many a TCP connect to secure servers without this problem.Hope this helpsTCOn 19 Aug 2008, at 11:40, Olin Lagon wrote:> Thanks TC. Actually, the URL I am trying to parse is>>https://epunahou.punahou.edu/cas/serviceValidate?ticket=myticketnumber&servi> ce=http://www.kh.org/api/>> Here is the code I am using that takes 60 secs from a windows vista > machine> (core2, high speed DSL, 4 gigs ram, etc.).>> [text]crlf=[unurl]%0D%0A[/unurl][/text]> [text]temp=[/text]> [text]temp=[tcpconnect host=epunahou.punahou.edu&port=443&ssl=T] > [tcpsend> skipheader=t][!]> [/!]GET> /cas/serviceValidate?ticket=myticketnumber&service=http://www.kh.org/api/> HTTP/1.1[crlf][!]> [/!]Host: epunahou.punahou.edu[crlf][crlf][!]> [/!][/tcpsend][/tcpconnect][/text]>> Is it the SSL that takes it to a crawl? By the way, the above should > return> an XML doc with an error.>> Thanks, Olin>> -----Original Message-----> From: Toby Cox [mailto:toby.cox@netro42.com]> Sent: Tuesday, August 19, 2008 12:15 AM> To: talk@webdna.us> Subject: Re: [WebDNA] tcp connect is slow...any ways to speed it up?>> using the exact code below I am getting times of 0.35 to> www.sproutbuilder.com> (which seems to be just a 301 page). What machine are you using?> What is your connection speed?>>> TC>>> On 19 Aug 2008, at 11:02, Olin Lagon wrote:>>> Aloha all, trying to use tcpconnect to download some files. It seems>> like each url takes 20 seconds (both windows and linux, webdna v6).>> I am using code like this>>>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [text]temp=[/text]>> [text]temp=[tcpconnect host=www.sproutbuilder.com][tcpsend>> skipheader=t][!]>> [/!]GET / HTTP/1.1[crlf][!]>> [/!]Host: www.sproutbuilder.com[crlf][crlf][!]>> [/!][/tcpsend][/tcpconnect][/text]>>>> Anyone have any tips? Using PHP and curl these pages get downloaded>> super fast.>>>> Thanks, Olin>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: >> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to:
"Olin Lagon"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Sandboxes (2004)
[searh] or [shownext]problem (1998)
Emailer setup (1997)
[WebDNA] MD5 Hash issue (2009)
[WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012)
Smart caching problems with 2.1b3? (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
about to encrypt a template (2000)
Show shoppingcart after remove last item (1997)
Cumulative Shipping charge calculations - your help please. (1997)
[WebDNA] Happy New Year! (2009)
[WebDNA] [BULK] Console / WebDNA no connection to module (2011)
PIXO (1997)
Search in 2 or more catalogs (1997)
pictures / referrer etc. (1998)
Emailer (WebCat2) (1997)
[capitalize] (2005)
Interpreting WebDNA tags (2004)
[SHOWIF]s and empty arguments (1997)
[INCLUDE] Limitations (1998)