rejetto forum

Possible improvement - file search

0 Members and 1 Guest are viewing this topic.

Offline Flynsarmy

  • Occasional poster
  • *
    • Posts: 92
  • DENIED!
    • View Profile
    • Flynsarmy
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).



Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
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!
your computer has no brain - use your own !


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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