2

we noticed a strange problem / misbehavior of IIS 7.5 + CGI module.

when POSTing long content (50k+ bytes) to an CGI exe, IIS is not sending the full content to our CGI exe via STDIN.

the length of the content that IIS is sending to the exe is not of fixed size, so it might not be an buffer size problem, etc!

the cgi exe behaves as following:

  1. get the content length of the HTTP header
  2. read as much bytes from STDIN as specified in content length
  3. do some magic work and exit

as not all bytes are forwarded by IIS / CGI module to our exe file, the exe file / process is running "forever" and is not returning any content. the process is killed after some minutes (timeout).

any suggestions / hints / etc. ... thanks in advance

regards, mherderich

4

1 に答える 1

0

これは、一般的な Windows CR+LF の問題である可能性があります。CR+LF は単一の文字に変換されるため、CR+LF 変換が行われると、コンテンツの長さが正確でない場合があります\n

于 2016-04-19T10:05:37.467 に答える