[Owncloud] propfind - why always two requests?
Daniel Molkentin
danimo at owncloud.com
Thu Jan 31 15:29:21 UTC 2013
On 01/31/2013 03:36 PM, Tim Hinkes wrote:
> Okay, not talking about the ssl/nonssl. BUT... Why are there two
> requests? I know how normally http auth is used with the server asking
> for auth with 401. But this doubles the needed requests.
>
> Why not sending the auth on every request after the server asks the
> first time for the credentials. I don't know how this could trigger
> security problems as long as the ssl cert getting validated. Because
> it is just a https://user:pass@owncloud.server.foo and would save lots
> of requests.
>
> This "useless" 401 requests are causing really heavy overhead when
> syncing folders with many (small) subfolders/files.
>
> I know this is bad style http, but we know where auth is needed. So i
> think it is worth the bad style, if we could save these expected 401
> requests.
>
You should see the duplicated PROPFIND only once on startup, and once
(!) for every sync run. I think in the light of an average sync process,
one additional call per sync hardly matters. If you see two accesses per
every file, that would be a bug.
Cheers,
Daniel
--
www.owncloud.com - Your Data, Your Cloud, Your Way!
ownCloud GmbH, GF: Markus Rex, Holger Dyroff
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)
More information about the Owncloud
mailing list