Artifacts Associated With Ticket f1393ca08145b870
Ticket change [8380dfd640] (rid 174005) by kvetter on 2019-08-06 18:50:23:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
If you do "curl 'https://nationalmap.gov/epqs/pqs.php?x=-82.52016666666667&y=40.06791666666667&units=Feet&output=xml'" it returns right away. If in tclsh you do: package require http package require tls http::register https 443 [list ::tls::socket -tls1 1] set url https://nationalmap.gov/epqs/pqs.php?x=-82.52016666666667&y=40.06791666666667&units=Feet&output=xml time {set token [::http::geturl $url]} it takes 75 seconds -- and with the correct result parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(engine) = Tcl tcl_platform(machine) = x86_64 tcl_platform(os) = Darwin tcl_platform(osVersion) = 18.6.0 tcl_platform(pathSeparator) = : tcl_platform(platform) = unix tcl_platform(pointerSize) = 8 tcl_platform(threaded) = 1 tcl_platform(user) = kvetter tcl_platform(wordSize) = 8 - foundin initialized to: "8.6.9"
- is_private initialized to: "0"
- login: "kvetter"
- priority initialized to: "5 Medium"
- private_contact initialized to: "13916f43690f8b7e1ae980e7733dd10617c2fc32"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "kvetter"
- subsystem initialized to: "29. http Package"
- title initialized to: "https get to USGS server takes 75 seconds"
- type initialized to: "Bug"
Ticket change [722f629986] (rid 185190) by kjnash on 2020-07-24 07:15:54:
- comment changed to:
If you do "curl 'https://nationalmap.gov/epqs/pqs.php?x=-82.52016666666667&y=40.06791666666667&units=Feet&output=xml'" it returns right away. If in tclsh you do: package require http package require tls http::register https 443 [list ::tls::socket -tls1 1] set url https://nationalmap.gov/epqs/pqs.php?x=-82.52016666666667&y=40.06791666666667&units=Feet&output=xml time {set token [::http::geturl $url]} it takes 75 seconds -- and with the correct result parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(engine) = Tcl tcl_platform(machine) = x86_64 tcl_platform(os) = Darwin tcl_platform(osVersion) = 18.6.0 tcl_platform(pathSeparator) = : tcl_platform(platform) = unix tcl_platform(pointerSize) = 8 tcl_platform(threaded) = 1 tcl_platform(user) = kvetter tcl_platform(wordSize) = 8 - icomment:
Is this still a problem? On my system the timing was similar in Curl and Tcl. I am using http 2.9.1 and Tcl 8.7a4 (similar results for 8.6.10), tls 1.7.21, and libressl 3.1.3 on Linux x86_64. 898666 microseconds per iteration $ time curl 'https://nationalmap.gov/epqs/pqs.php?x=-82.52016666666667&y=40.06791666666667&units=Feet&output=xml' <?xml version="1.0" encoding="utf-8" ?><USGS_Elevation_Point_Query_Service><Elevation_Query x="-82.52016666666667" y="40.06791666666667"><Data_Source>3DEP 1/3 arc-second</Data_Source><Elevation>958.1</Elevation><Units>Feet</Units></Elevation_Query></USGS_Elevation_Point_Query_Service> real 0m0.927s user 0m0.023s sys 0m0.010s
- login: "kjnash"
- mimetype: "text/plain"
- comment changed to:
Ticket change [0699db3ef5] (rid 190579) by kjnash on 2020-12-31 15:13:15:
- closedate changed to: "2459215.13420699"
- closer changed to: "kjnash"
- icomment:
This was likely a problem with an old version of OpenSSL.
- login: "kjnash"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Closed"