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"},
      {http_user_agent,"Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 
rv:1.7.5) Gecko/20050603 Netscape/8.0.2"},
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.  :-(


More information about the erlang-questions mailing list