You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Mohit_Garg01 <Mo...@infosys.com> on 2007/06/01 07:28:59 UTC

A query regarding input filter




Hi,

 

I am facing the issue where a large file is not getting uploaded from
apache proxy to SAP at back end. This issue occurs when our custom
apache module gets loaded, going into the problem I found out the
below:- 

 

It adds an input filter via the call ap_add_input_filter in the
access_checker hook after registering it. This filter looks like below:-

 

apr_status_t input_filter(

{

             conn_rec *c = f->c;

             request_rec *r = f->r;

 

             server_rec *s = r->server;

             return ap_get_brigade(f->next, pbbOut, mode, block,
readbytes);

 

}

 
We have observed that in case where you post a file of 27 bytes, the
filter function would get called 5 times that via the call
ap_get_brigade the next filter in the chain is called to read 8 bytes of
data. The 6th time is called with Non blocking type, mode as
AP_MODE_EATCRLF, with 0 bytes to be read. And we have seen that the call
"ap_get_brigade(f->next, pbbOut, mode, block, readbytes)" returns 730035
i.e. an socket error .

How this can be rectified??
 

 

Thanks in advance for this.

Mohit


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***