Project

General

Profile

Feature #2141

Magnet enhancement

Added by crypt over 9 years ago. Updated about 3 years ago.

Status:
Missing Feedback
Priority:
Low
Assignee:
-
Category:
mod_magnet
Target version:
-
Start date:
2009-12-31
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:
No

Description

lighttpd uses a very simple hash algorithm to create etags. I ported the function "hashme" to lua to be able to create etags also from lua.

Another feature is the lighty variable lighty.env["request.time"] to get the cached time without a syscall.

mod_magnet.patch (1.52 KB) mod_magnet.patch crypt, 2009-12-31 15:00

History

#1

Updated by gstrauss over 3 years ago

The hashme implementation is incorrect. To correct it, please use (unsigned char *)

const unsigned char *s = (unsigned char *)luaL_checkstring(L, 1);

#2

Updated by gstrauss about 3 years ago

  • Priority changed from Normal to Low
  • Target version deleted (1.5.0)
#3

Updated by gstrauss about 3 years ago

  • Status changed from New to Missing Feedback

The functionality of the patch could be done in lua code. Why is there a measurable benefit after taking into account the cost of marshalling across language boundaries?

Also available in: Atom