ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.68k stars 625 forks source link

Very slow saving resource by HTTP Downloading #1309

Open WPMGPRoSToTeMa opened 11 years ago

WPMGPRoSToTeMa commented 11 years ago

So, when I loading resources from the server by HTTP download (aka FastDL), the saving resource is very slow (in 4554 build that was more fast). I saying about a process between ending download resource and go next resource.

Freeman-AM commented 11 years ago

true fact. i confirm.

R4to0 commented 11 years ago

That's true. There is a lot of work that have to be done on new http download system. Seems the problem is the communication between Steam.exe (it's the main process who download resources from http host now) and hl.exe (GoldSrc process) i presume...

R4to0 commented 11 years ago

Well, i think this problem is related to #934

WPMGPRoSToTeMa commented 11 years ago

@R4to0, i have the same bug, but my connection is fast (9 mbps) and downloading files are small

serfreeman1337 commented 11 years ago

Its opens too many connections for one file download, its doesnt mean its uses stream download, its means its opens 3 connection and download one file 3 times.

Im have TCP/IP connections viewer. And always when i start download one file all 3 connections recieving same bytes size as that file size.

Traffic stats: https://f.cloud.github.com/assets/2133936/553878/ef4f5c50-c394-11e2-9985-e53737c6461f.jpg

Also im have following:

] version Protocol version 48 Exe version 1.1.2.2/Stdio (valve) Exe build: 17:47:17 Apr 25 2013 (6027) ] developer 3 ] connect s2.hldm.org:27115 NET Ports: server 27015, client 27005 Server IP address 1.3.3.7:27015 Server IPX address 00000001:000000000001:27015 Connecting to s2.hldm.org:27115... Connection accepted by 91.234.33.22:27115 Privileges set  BUILD 5758 SERVER (0 CRC) Server # 1 Serverinfo packet received. Clearing memory Remote host: KOOI7EPATUB - HLDM.ORG Couldn't find map maps/quarter.bsp, server will download the map Spooling demo header. Using http://s2.hldm.org/fastdl/svencoop/ as primary download location Verifying and downloading resources... Netchan_Clear() : reliable length not 0, reliable_sequence: 41, incoming_reliable_acknowledged: 1 Requesting HTTP download of http://s2.hldm.org/fastdl/svencoop/maps/quarter.bsp. Requesting HTTP download of http://s2.hldm.org/fastdl/svencoop/quarter.wad. Requesting HTTP download of http://s2.hldm.org/fastdl/svencoop/maps/quarter.bsp. Saved http://s2.hldm.org/fastdl/svencoop/quarter.wad to disk Saved http://s2.hldm.org/fastdl/svencoop/maps/quarter.bsp to disk Commencing connection retry to s2.hldm.org:27115 Connecting to s2.hldm.org:27115... Connection accepted by 91.234.33.22:27115 Privileges set  BUILD 5758 SERVER (0 CRC) Server # 1 Serverinfo packet received. Clearing memory. ]

WPMGPRoSToTeMa commented 11 years ago

Valve fix it pls xD

R4to0 commented 11 years ago

@serfreeman1337 This is a resource file issue, check yourself: http://s2.hldm.org/fastdl/svencoop/maps/quarter.res BSP files are already precached by HLDS itself, and mentioning it in resource file it will make a new request of same file again...

serfreeman1337 commented 11 years ago

No. Ok, im going to another server with custom map (no resources). Im starting downloading only that map: http://yadi.sk/d/cyHITSEY8qmw8

Map size: ~1.9Mb Its opens 3 connections and download same map 3 times in 3 connections

Dafuq

R4to0 commented 11 years ago

Strange, it never happens with me!

sem ttulo

Only bsp, no res at server side.

Server: Windows Server 2003 x86 (with ALL updates) 2GB RAM DDR2 667MHz Protocol version 48 Exe version 1.1.2.2 (valve) Exe build: 11:17:24 Aug 8 2013 (6132)

Client: Windows 8 Pro x64 (with ALL updates) 4GB DDR2 800MHz Protocol version 48 Exe version 1.1.2.2/Stdio (valve) Exe build: 13:14:12 Aug 29 2013 (6153)