Author Topic: When a word or excel is opened from IE, it hangs 3-4mn : solution inside  (Read 4436 times)

0 Members and 1 Guest are viewing this topic.

Offline waskol

  • Occasional poster
  • *
  • Posts: 4
    • View Profile
Hello, here is a bug I meet with HFS. I think it is a timeout problem.

At our office, we share some files on our intranet with the help of hfs. Among those filesthere are some .doc and .xls
When a ms office file (word, excel) is opened from IE, IE hangs 3-4 minutes before displaying the document.


Software invoved :
- XP sp1
- IE6
- Office 2000
- HFS 2.2f
- The opening of excel or word documents should be allowed from Internet explorer.

Sorry, but I cannot get a workaround for this, since at my office I am obliged to use what was installed on my PC : I do not have the administrative permissions to update anything, nor change some settings (registry and HDD are read only, that hmmm... >:( )
Of course, we have firefox installed, wich does not have this problem, but here, there are about 500 people and amongg them, some only know Internet explorer... ;D

Steps to reproduce :
browse to a word or Excel file from IE, click on the link,
The first time, a dialog appears and you can select Open/Save/Cancel/information,choosing "Open" then opens the document in excel or word : no problem.

Now, the file is in the cache of the browser, right ?
Close excel, click a 2nd time on the link : IE tries to open the document from within its window (OLE), but then it takes ages in order to load the document.

Let's compare HFS log with quick'n easy web server
- HFS Log :
Quote
1st download attempt
14:01:46 172.22.16.185:3977 Connected
14:01:46 172.22.16.185:3977 Got 313 bytes
14:01:46 172.22.16.185:3977 Requested GET /TEST INTRANET/PMU/Equipe1.xls
14:01:46 172.22.16.185:3977 Request dump
> GET /TEST%20INTRANET/PMU/Equipe1.xls HTTP/1.1
> Accept: */*
> Referer: http://www.crna-o.aviation/e/in/articles.php?lng=fr&pg=146
> Accept-Language: fr
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727)
> Host: 172.22.16.185
> Connection: Keep-Alive
14:01:46 172.22.16.185:3977 Sent 1460 bytes
14:01:46 172.22.16.185:3977 Fully downloaded - 22,50 KB @ 1536 KB/s - /TEST INTRANET/PMU/Equipe1.xls
...1s download was OK
2nd download attempt :
14:01:53 172.22.16.185:3977 Got 363 bytes
14:01:53 172.22.16.185:3977 Requested GET /TEST INTRANET/PMU/Equipe1.xls
14:01:53 172.22.16.185:3977 Request dump
> GET /TEST%20INTRANET/PMU/Equipe1.xls HTTP/1.1
> Accept: */*
> Referer: http://www.crna-o.aviation/e/in/articles.php?lng=fr&pg=146
> Accept-Language: fr
> Accept-Encoding: gzip, deflate
> If-Modified-Since: Thu, 22 Oct 2009 13:33:57 GMT
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727)
> Host: 172.22.16.185
> Connection: Keep-Alive
14:01:53 172.22.16.185:3977 Not modified, use cache <-- Tells to IE to use it's cache
14:01:53 172.22.16.185:3977 Disconnected by server - 23040 bytes sent
14:01:53 172.22.16.185:3982 Connected
14:01:53 172.22.16.185:3982 Got 183 bytes <-- Long wait starts here, HSF displays "Requesting"
14:02:54 172.22.16.185:3982 Disconnected by server: inactivity
14:02:54 172.22.16.185:3986 Connected
14:02:54 172.22.16.185:3986 Got 266 bytes
14:02:54 172.22.16.185:3986 Requested GET /_vti_inf.html <-- Webdav thing of excel
14:02:54 172.22.16.185:3986 Request dump
> GET /_vti_inf.html HTTP/1.1
> Date: Fri, 23 Oct 2009 12:02:54 GMT
> MIME-Version: 1.0
> Accept: */*
> User-Agent: Mozilla/2.0 (compatible; MS FrontPage 4.0)
> Host: 172.22.16.185
> Accept: auth/sicily
> Content-Length: 0
> Connection: Keep-Alive
> Cache-Control: no-cache
14:02:54 172.22.16.185:3986 Sent 1460 bytes
14:02:54 172.22.16.185:3986 Not served: 404 - Not found
14:02:54 172.22.16.185:3987 Connected
14:02:54 172.22.16.185:3987 Got 391 bytes
14:02:54 172.22.16.185:3986 Disconnected by server - 1857 bytes sent
14:03:54 172.22.16.185:3987 Disconnected by server: inactivity
14:03:54 172.22.16.185:3988 Connected
14:03:54 172.22.16.185:3988 Got 223 bytes
14:04:54 172.22.16.185:3988 Disconnected by server: inactivity <--finally document is displaying


I've tried with another web server (Quick'n easy web server) in order to compare, and in fact, the client is disconnected ASAP after a 304 or a 404 response....
Quote
13:33:39.609  [612] Client connected from 127.0.0.1
13:33:39.609  [612] Processing HTTP request for domain: 'localhost:8000'...
13:33:39.609  [612] Sending file: D:\testweb\equipe1.xls
13:33:39.609  [612] Response: 304 Not Modified
13:33:39.609  [612] Transfer complete
13:33:39.609  [612] Client disconnected from 127.0.0.1
13:33:39.687  [1064] Client connected from 127.0.0.1
13:33:39.687  [1064] Processing HTTP request for domain: 'localhost:8000'...
13:33:39.687  [1064] Sending file: D:\testweb\index.html
13:33:39.687  [1064] Response: 200 OK
13:33:39.687  [1064] Transfer complete
13:33:39.687  [1064] Client disconnected from 127.0.0.1
13:33:39.687  [4000] Client connected from 127.0.0.1
13:33:39.687  [4000] Processing HTTP request for domain: 'localhost:8000'...
13:33:39.687  [4000] Error processing: /_vti_inf.html
13:33:39.687  [4000] Response: 404 Not Found
13:33:39.687  [4000] Client disconnected from 127.0.0.1
13:33:39.703  [2060] Client connected from 127.0.0.1
13:33:39.703  [2060] Processing HTTP request for domain: 'localhost:8000'...
13:33:39.703  [2060] Error processing: /_vti_bin/shtml.exe/_vti_rpc
13:33:39.703  [2060] Response: 404 Not Found
13:33:39.703  [2060] Client disconnected from 127.0.0.1
13:33:39.703  [3184] Client connected from 127.0.0.1
13:33:39.703  [3184] Processing HTTP request for domain: 'localhost:8000'...
13:33:39.703  [3184] Sending file: D:\testweb\equipe1.xls
13:33:39.703  [3184] Response: 200 OK
13:33:39.718  [3184] Transfer complete
13:33:39.718  [3184] Client disconnected from 127.0.0.1

Thus, I set up the "Connection inactivity Timeout" to 1 second (instead of the 60 seconds) and that drastically solved (but partially) the problem (it takes only 3 seconds to open a document now !).

Other else, I wanted to thank you very very much for this wonderfull http file server ! I even managed to get directory listings and download from a distant webserver in php : I will post something about it soon.

Thank you, keep up the good work !
« Last Edit: October 23, 2009, 01:12:52 PM by waskol »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: When a word or excel is opened from IE, it hangs 3-4mn : solution inside
« Reply #1 on: October 25, 2009, 11:19:40 PM »
welcome waskol!
i'm working on it. i'll let you know asap.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: When a word or excel is opened from IE, it hangs 3-4mn : solution inside
« Reply #2 on: October 25, 2009, 11:44:44 PM »
i fear this fix will never be included in version 2.2, it would require too much work.
Instead 2.3 will with next release. In the while i uploaded this preview for you, so that you can test it
http://www.sendspace.com/file/5q0ez7
let me know

Offline waskol

  • Occasional poster
  • *
  • Posts: 4
    • View Profile
Re: When a word or excel is opened from IE, it hangs 3-4mn : solution inside
« Reply #3 on: October 25, 2009, 11:52:38 PM »
Thank you !
I will be able to test it on Tuesday.
I keep you informed  :)

Offline waskol

  • Occasional poster
  • *
  • Posts: 4
    • View Profile
Re: When a word or excel is opened from IE, it hangs 3-4mn : solution inside
« Reply #4 on: October 27, 2009, 09:59:56 AM »
It works perfect !
Thank you rejetto !

(Just had to add a blank line in my filelist.tpl file, according to this post : File Listing )