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 AM To: talk@webdna.us Subject: 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 acceptable you 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&serv ice=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 seconds I 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 helps TC On 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 to the mailing list . To unsubscribe, E-mail to: Associated Messages, from the most recent to the oldest:

    
  1. RE: [WebDNA] tcp connect is slow...any ways to speed it up? ("Olin Lagon" 2008)
  2. Re: [WebDNA] tcp connect is slow...any ways to speed it up? (Toby Cox 2008)
  3. RE: [WebDNA] tcp connect is slow...any ways to speed it up? ("Olin Lagon" 2008)
  4. Re: [WebDNA] tcp connect is slow...any ways to speed it up? (Toby Cox 2008)
Thanks TC. Very helpful. -----Original Message----- From: Toby Cox [mailto:toby.cox@netro42.com] Sent: Tuesday, August 19, 2008 1:02 AM To: talk@webdna.us Subject: 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 acceptable you 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&serv ice=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 seconds I 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 helps TC On 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 to the 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:

founditems (2000) Emailer (1997) Entry pages (was: WebCatalog MAJOR drawback) (1998) Showing unopened cart (1997) Return records from another (1997) Accepting credit cards (1997) [WebDNA] interesting bug webdna 6 (2012) WC2.0 Memory Requirements (1997) WebCatalog 4.0.1 has been released! (2000) Limit to variables being passed??? (1998) UPS QuickCost and More (2000) WebTEN vs webSTAR (1998) No luck with taxes (1997) WebCat preferences caching problem (2000) greater than or equal to (1997) [WebDNA] BBEdit WebDNA Configuration.plist (Language Module) (2013) emailer (1997) Weeks starting on Mondays (1998) WC2b15 File Corruption (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997)