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:

how to construct a search for not this entire string? (2000) WebDNA tags in WebMerchant email templates ... (1997) Sorting by date (1997) I've been thinking (2002) WebDelivery downloads alias, not original ? (1997) Search/sort in URL Was: GuestBook example (1997) [addlineitems] as oppossed to url command=add (2000) Summing fields (1997) WebCatalog2 Feature Feedback (1996) WebCat2b13 Command Reference Doc error (1997) multiple record replace (2001) Which Pref is faster? (1998) Bad File: DeleteCommand.html (1998) Country & Ship-to address & other fields ? (1997) WebCatalog NT beta 18 problem (1997) problems with 2 tags (1997) DataBaseHelper Flawed (1997) WebDNA Windows 5.0 sendmail bug (2003) [WebDNA] v7 Stress Test and Strange Behaviour (2012) _ in front of field name (1998)