Branch: Tag:

2003-06-18

2003-06-18 11:51:30 by Tomas Nilsson <tomas@roxen.com>

Added support for connection local data in RequestID->connection_misc
mapping.

Rev: server/base_server/prototypes.pike:1.63
Rev: server/protocols/http.pike:1.402

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.401 2003/06/16 12:39:28 grubba Exp $"; + constant cvs_version = "$Id: http.pike,v 1.402 2003/06/18 11:40:41 tomas Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
87:    }   #endif // REQUEST_DEBUG   ]); + mapping (string:mixed) connection_misc = ([ ]);   mapping (string:string) cookies = ([ ]);   mapping (string:string) request_headers = ([ ]);   mapping (string:string) client_var = ([ ]);
867:    o->host = host;    o->conf = conf;    o->pipe = pipe; +  o->connection_misc = connection_misc;    o->kept_alive = kept_alive+1;    MARK_FD("HTTP kept alive");    object fd = my_fd;
2202:    c->misc = copy_value( misc );    c->misc->orig = t;    +  c->connection_misc = connection_misc; +     c->prestate = prestate;    c->supports = supports;    c->config = config;