R10B-7 inets issue

Serge Aleynikov serge@REDACTED
Thu Sep 15 19:07:19 CEST 2005


OTP team:

I installed R10B-7 release on Linux and while running inets httpd the 
following printout shows in the terminal window every time an http 
client is making a request to a dynamic web page (using mod_esi).  This 
hasn't being seen in the prior OTP releases:

1> Env [{server_software,"inets/4.5.3"},
      {server_name,"devlinuxpro"},
      {gateway_interface,"CGI/1.1"},
      {server_protocol,"HTTP/1.1"},
      {server_port,8080},
      {request_method,"GET"},
      {remote_addr,"10.206.200.65"},
      {script_name,"/cgi-bin/erl/server_mgr/http_get_state"},
      {http_host,"devlinuxpro.mis.idt.net:8080"},
      {http_user_agent,"Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 
rv:1.7.5) Gecko/20050603 Netscape/8.0.2"},
 
{http_accept,"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"},
      {http_accept_language,"en-us,en;q=0.5"},
      {http_accept_encoding,"gzip,deflate"},
      {http_accept_charset,"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
      {http_keep_alive,"300"},
      {http_connection,"keep-alive"}]
Enter erl_scheme_webpage_chunk
Enter erl_scheme_webpage_whole

----------
This is what I have in the inets' config file:

 >cat ../priv/inets.conf
BindAddress    *
Port           8080
ServerName     wwwproxy

ServerRoot     ../priv
DocumentRoot   ../priv/docroot
Modules        mod_alias mod_esi mod_auth mod_actions mod_cgi 
mod_include mod_dir mod_get mod_head
DirectoryIndex index.html
ErlScriptAlias /cgi-bin/erl io io_lib server_mgr

----------
The http client accesses a page /server_mgr/http_get_state
Before calling server_mgr:http_get_state/2 the inets httpd server prints 
the information stated above.

I narrowed down the problem to inets' mod_esi.erl lines:

erl_scheme_webpage_chunk(Mod, Func, Env, Input, ModData) ->
     io:format("Enter erl_scheme_webpage_chunk~n", []),
     ...

erl_scheme_webpage_whole(Module, Function, Env, Input, ModData) ->
     io:format("Enter erl_scheme_webpage_whole~n", []),
     ...

generate_webpage(ModData, ESIBody, Modules, ModuleName, FunctionName,
          Input, ScriptElements) ->
     ...
         io:format("Env ~p  ~n", [Env]),

---------

Is this a debugging leftover???  I don't see any way to get rid of this 
other than to patch mod_esi.  :-(

Serge



More information about the erlang-questions mailing list