CAI_Support
Senior Member
Thanks to Cocoontech provided chat room for us to discuss that in real time.
To summarize our discussion, server CGI should not put SET_WC=00120012 as last thing in the CGI code, since web server will send DISCONNECT and FIN to the WebControl immediately after that. Then WEBSET function will have no time to process the request from server. Due to RAM limitation in WebControl, we do not have anyway to let TCP buffer to make another copy of the incoming data. To work around this limitation is that user server CGI need to add some comment about the data sent AFTER SET_WC= number string. If during testing, WEBSET did not receive the whole number string, user will need to in its CGI code add more comment at the end of the data (20 bytes to 50 bytes). That will give WEBSET function more time to process the SET_WC number string.
Ross, if the above is not clear enough, please do provide your description on this.
To summarize our discussion, server CGI should not put SET_WC=00120012 as last thing in the CGI code, since web server will send DISCONNECT and FIN to the WebControl immediately after that. Then WEBSET function will have no time to process the request from server. Due to RAM limitation in WebControl, we do not have anyway to let TCP buffer to make another copy of the incoming data. To work around this limitation is that user server CGI need to add some comment about the data sent AFTER SET_WC= number string. If during testing, WEBSET did not receive the whole number string, user will need to in its CGI code add more comment at the end of the data (20 bytes to 50 bytes). That will give WEBSET function more time to process the SET_WC number string.
Ross, if the above is not clear enough, please do provide your description on this.