rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Flynsarmy on January 02, 2008, 01:14:22 AM

Title: Possible improvement - file search
Post by: Flynsarmy on January 02, 2008, 01:14:22 AM
I tried to search for <name>* and was waiting quite a while for HFS to complete its search. I clicked a
different folder in the breadcrumb trail (ToG) however HFS continued its search and wouldn't let me load
another folder until it was done. Would it be possible to check all new folder requests for the ip of the
person doing the search - if they match cancel the search (because the person would no longer be viewing
the search page when it was done anyway).

Title: Re: Possible improvement - file search
Post by: bacter on January 02, 2008, 07:08:47 AM
This would cause another problem: Access from a LAN over WAN to the server.
All users on the LAN show their same external IP to the server!
Title: Re: Possible improvement - file search
Post by: rejetto on January 02, 2008, 12:26:28 PM
Indeed the IP is not the way.
The point is: HTTP does not support canceling. So, what does the browser actually do when you cancel the previous request?

HFS is programmed to stop the processing as soon as the connection is closed. So, if the browser closes the socket[1] and opens a new one, it should work as expected.
Since you says the searching was not stopped, i wonder how have been the connections used by the browser. Luckily you can collect this information by activating most options in the log. Every connection is identified by the port. Different port = different connection

[1] socket and connection are synonymous in this context