Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 550 in cherokee: RFE: mod_unique_id functionality

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Aug 25, 2009, 1:00 AM

Post #1 of 10 (765 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality

Status: New
Owner: ----

New issue 550 by binb...@b2host.de: RFE: mod_unique_id functionality
http://code.google.com/p/cherokee/issues/detail?id=550

cherokee doesn't seem to provide a CGI Environment Variable called
UNIQUE_ID.
This variable is used by several perl cgi scripts to get a session id.
So cherokee should normally generate a unique id and pass it as cgi
environment variable.
This is the same behaviour like mod_uniqueid for Apache.

More detailed description is written down here:
http://httpd.apache.org/docs/1.3/mod/mod_unique_id.html

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 7, 2009, 12:45 AM

Post #2 of 10 (711 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #1 on issue 550 by binb...@b2host.de: RFE: mod_unique_id
functionality
http://code.google.com/p/cherokee/issues/detail?id=550

Here's a patch that works for me. Not really ensured to be unique, but it's
generating random 24 chars string.
Chance that it's duplicated is not very high?!!

Attachments:
hack_unique_id_quick.patch 1.3 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 12:16 AM

Post #3 of 10 (717 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #2 on issue 550 by alobbs: RFE: mod_unique_id functionality
http://code.google.com/p/cherokee/issues/detail?id=550

I'm afraid, we cannot commit this patch upstream because of a number of
reasons:

- Even though it works for simple scenarios, it is quite far of doing what
UNIQUE_ID
does in Apache. For instance, it's supposed to working in a cluster
(different
cluster nodes will not return the same unique_id value).

- The second major problem is the performance. There are architectures/OSes
where the
random number generation is slow as hell. We should not even think of
generating 24
random numbers per request. That'd have a considerable performance impact
in the
server performance.

A better approach could be: (I'm just thinking loud here, I haven't checked
it..):

- Use the connection unique ID
- Use the keep-alive value
- Use some value that would identify the host (the plain text hostname?)
- Mix all those together, (hash it?, ) and generate a 24 chars length
string.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 12:23 AM

Post #4 of 10 (705 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #3 on issue 550 by binb...@b2host.de: RFE: mod_unique_id
functionality
http://code.google.com/p/cherokee/issues/detail?id=550

It was not my intention to use this in upstream release version.
Posted it only for people who need such a feature quick, because for me
this works
temporary and very well. But I wrote it already in the comment of my last
post. :-)
I tested the connection unique ID. With Keep Alive it doesn't change so
it's not
really usable.
In a later version I will check how exactly unique_id is generated for
Apache and
port it properly.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 6:06 AM

Post #5 of 10 (706 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #4 on issue 550 by ste...@konink.de: RFE: mod_unique_id
functionality
http://code.google.com/p/cherokee/issues/detail?id=550

Could we create some subdirectories in contrib with an explanation why the
feature is
not in mainline and the feature as patch?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 6:11 AM

Post #6 of 10 (714 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #5 on issue 550 by binb...@b2host.de: RFE: mod_unique_id
functionality
http://code.google.com/p/cherokee/issues/detail?id=550

For such things we could let the configure script set defines.
So we can put like ./configure --enable-unique-id
And we can check those defines in code.
So users can enable it during compile.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 6:35 AM

Post #7 of 10 (710 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #6 on issue 550 by alobbs: RFE: mod_unique_id functionality
http://code.google.com/p/cherokee/issues/detail?id=550

Odds are patches wouldn't apply from one version to the next. It'd be a
mess.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 6:43 AM

Post #8 of 10 (704 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #7 on issue 550 by ste...@konink.de: RFE: mod_unique_id
functionality
http://code.google.com/p/cherokee/issues/detail?id=550

There will be a reference implementation; the bugtracker isn't the place to
keep them
I guess.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 6:48 AM

Post #9 of 10 (704 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #8 on issue 550 by binb...@b2host.de: RFE: mod_unique_id
functionality
http://code.google.com/p/cherokee/issues/detail?id=550

It shouldn't be applied as a patch.
:-)
It should be integrated into main version when it works like desired.


for example:

-> configure script sets
#define ENABLE_UNIQUE_ID

-> code checks
#ifdef ENABLE_UNIQUE_ID
some c code here....
#endif

That's like php for example is doing it.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Sep 8, 2009, 7:02 AM

Post #10 of 10 (708 views)
Permalink
Issue 550 in cherokee: RFE: mod_unique_id functionality [In reply to]

Comment #9 on issue 550 by ste...@konink.de: RFE: mod_unique_id
functionality
http://code.google.com/p/cherokee/issues/detail?id=550

...then it has to work, which is doesn't in the general case ;)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.