Project

General

Profile

Actions

Feature #2141

closed

Magnet enhancement

Added by crypt almost 12 years ago. Updated over 5 years ago.

Status:
Missing Feedback
Priority:
Low
Category:
mod_magnet
Target version:
-
ASK QUESTIONS IN Forums:

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.


Files

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

Updated by gstrauss over 5 years ago

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

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

Actions #2

Updated by gstrauss over 5 years ago

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

Updated by gstrauss over 5 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?

Actions

Also available in: Atom