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:

Re[2]: Support suggestions - long (was politeness, et al) (2000) php + WebCatalog in same files (2001) WebCatalog can't find database (1997) How To question on setting up downloads (1997) Generate a SKU (1998) New Guestbook Source (1997) Protect (1997) Search in 2 or more catalogs (1997) Some Questions (1997) Format question WC Mac f3 (1997) Misc Stuff That Might Help (1997) Re:quit command on NT (1997) Custom WebCat Prefs ... (1997) PhotoMill -> PhotoMaster (1997) Apoligy (1997) Upgrading old WebCat Database Files (1997) sendmail for email (was Netforms) (1998) 2nd try:Webcat interfering with Webstar? (1998) Hard Questions ? (1997) Suggestion -- who are you people (1998)