[patch iwhd 1/2] Add ms->authorized

Jim Meyering jim at meyering.net
Thu Oct 20 18:12:47 UTC 2011


Pete Zaitcev wrote:
> The access handler may be invoked several times per transfer. This is
> especially obvious in case of POST. Currently, we re-authorize the
> transfer each time, which is plain dumb. Cache the authorization.
>
> ---
>  rest.c       |    7 +++++++
>  state_defs.h |    2 ++
>  t/oauth      |    7 +++++++
>  3 files changed, 16 insertions(+)
>
> commit 9d02f4e012ef3e9cbcd9262374304039baa47b5c
> Author: Pete Zaitcev <zaitcev at yahoo.com>
> Date:   Thu Oct 20 10:27:55 2011 -0600
>
>     Add ms->authorized.

That looks fine.  I've adjusted the one-line summary to be like this

  oauth: avoid unnecessary work: add ms->authorized

and pushed.

Thanks!


More information about the iwhd-devel mailing list