Stefan M. Huber
2007-06-26 08:51:36 UTC
Hi!
I am standing in front of a problem that I cannot cope with: I am using
the wininet API to accomplish some HTTP and HTTPS actions. I am *not*
using thirdy party components because we want to avoid that our users
install SSL certificates in our application as well as in MSIE (where they
already have them).
I am using HttpSendRequest to send a HTTP POST request. Normally, this
works out perfectly, but we noticed that on some occasions, when the sent
payload is larger (about 300kb), HttpSendRequest fails with a timeout.
The problem is *not* that the data is so large. The problem is that the
send/ACK packets of the TCP stream get out of sync. I sniffed with
Wireshark which can rearrange the packets in the right order: The complete
answer from the server is there (after about 10 seconds). But
HttpSendRequest only returns when the set timeout is reached.
Any ideas of how to prevent that?
Thanks,
Stefan
I am standing in front of a problem that I cannot cope with: I am using
the wininet API to accomplish some HTTP and HTTPS actions. I am *not*
using thirdy party components because we want to avoid that our users
install SSL certificates in our application as well as in MSIE (where they
already have them).
I am using HttpSendRequest to send a HTTP POST request. Normally, this
works out perfectly, but we noticed that on some occasions, when the sent
payload is larger (about 300kb), HttpSendRequest fails with a timeout.
The problem is *not* that the data is so large. The problem is that the
send/ACK packets of the TCP stream get out of sync. I sniffed with
Wireshark which can rearrange the packets in the right order: The complete
answer from the server is there (after about 10 seconds). But
HttpSendRequest only returns when the set timeout is reached.
Any ideas of how to prevent that?
Thanks,
Stefan