User accesses a web app through a NetScaler Load Balancing Virtual Server. One of the options that the app has is to generate and download an Excel file. The download seems to finish properly, but the file cannot be opened in Excel. The file is corrupted. Comparing the downloaded file between the file obtained by directly accessing the back-end server, the downloaded file is smaller in size.
The trace analysis shows that the NetScaler resets the connection during the download with the code 9205 ("HTTP request/response tracking failed due to chunk tracking failure), in both ways of the communication.Wireshark shows the following information about the last HTTP packet before the RST: Leading CRLF previous message in the stream may have extra CRLF.
Create an HTTP profile based on the "nshttp_default_profile" and disable the "Drop extra CRLF" option. Apply this new profile to the NetScaler Load Balancing Virtual Server and the Service Group: