ZSRV_MSG0107: Premature end of script headers: File name is JSMDIRECT.PGM. (Cannot read script output pipe)

Date:23 January, 2008
Product/Release:LANSA Integrator
Abstract:Cannot read script output pipe
Submitted By:LANSA Technical Support

Description:

The following errors may be produced at the client or server side when dealing with JSMDIRECT in LANSA Integrator.

  1. Cannot read script output pipe.
  2. ZSRV_MSG0107: Premature end of script headers: File name is JSMDIRECT.PGM.

Cause:

This error is caused by the Web server Timing out. This is usually caused by the Server taking a period of time preparing the response that is longer than the TimeOut period specified in the Web server configuration.

Solution:

The solution for this issue is to increase the TimeOut period on the Web server Configuration.

To increase the HTTP Apache Sever TimeOut use the TimeOut directive.

http://httpd.apache.org/docs/2.0/mod/core.html#timeout

Amount of time the server will wait for certain events before failing a request.

The default is 5 minutes (300 seconds)

To ensure that other applications are not adversely affected, any changes to the TimeOut directive would need to be make only after considering all applications that are processed through the Web server.

<VirtualHost 10.2.0.170>
ServerName LANSA01 
DocumentRoot /www/jsmapache/htdocs
CGIConvMode %%BINARY/BINARY%% 
TimeOut 3000 
</VirtualHost>