EDN Admin
Well-known member
<p lang="en-US" style="margin:0in; font-family:Calibri; font-size:14.0pt I am using https to send some data to the server side(IIS on Win2K3), but something goes wrong, and the situation seems confusing.
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="en-US I am using a while loop to divide all my data into small pieces and trying to send just one piece each time. When I run the program, every thing seems all right. But when debugger
is involved, <span lang="zh-CN" style="font-style:italic WinHttpWriteData<span lang="en-US may fail sometimes with Error Code 12030. After a while, I figure out that if the break between invocations of
<span lang="zh-CN" style="font-style:italic WinHttpWriteData<span lang="en-US" style="font-weight:bold; font-style:italic
<span lang="en-US takes too much time, the connection with server will be terminated by the server. The problem is that now I am going to add some extra code between invocations of
<span lang="zh-CN" style="font-style:italic WinHttpWriteData<span lang="en-US , and those code are inevitable.
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="en-US Just now<span lang="zh-CN ,<span lang="en-US I added some log functions in my program and try to send a very large file as attachment, then I got those logs:
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.828 WinHttpWriteData() success....
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.843 WinHttpWriteData() success....
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.843 WinHttpWriteData() success....
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.859 WinHttpWriteData() success....
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="zh-CN 16:00:33.031 WinHttpWriteData() failed!
<span lang="en-US Error: <span lang="zh-CN 12030
<p lang="en-US" style="margin:0in; font-family:Calibri; font-size:14.0pt The timeout setting of this time on IIS is 1S.
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="en-US I have tried other settings like 60 Mins, but things keep show off like this. At the beginning, everything was fine, but after a while,
<span lang="zh-CN WinHttpWriteData<span lang="en-US will fail because of timeout.
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt
<p lang="en-US" style="margin:0in; font-family:Calibri; font-size:14.0pt Is there any option I should set when creating the session or any setting I can modify on server side?
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt Best Regards.
<br/>
View the full article
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="en-US I am using a while loop to divide all my data into small pieces and trying to send just one piece each time. When I run the program, every thing seems all right. But when debugger
is involved, <span lang="zh-CN" style="font-style:italic WinHttpWriteData<span lang="en-US may fail sometimes with Error Code 12030. After a while, I figure out that if the break between invocations of
<span lang="zh-CN" style="font-style:italic WinHttpWriteData<span lang="en-US" style="font-weight:bold; font-style:italic
<span lang="en-US takes too much time, the connection with server will be terminated by the server. The problem is that now I am going to add some extra code between invocations of
<span lang="zh-CN" style="font-style:italic WinHttpWriteData<span lang="en-US , and those code are inevitable.
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="en-US Just now<span lang="zh-CN ,<span lang="en-US I added some log functions in my program and try to send a very large file as attachment, then I got those logs:
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.828 WinHttpWriteData() success....
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.843 WinHttpWriteData() success....
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.843 WinHttpWriteData() success....
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt 16:00:24.859 WinHttpWriteData() success....
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="zh-CN 16:00:33.031 WinHttpWriteData() failed!
<span lang="en-US Error: <span lang="zh-CN 12030
<p lang="en-US" style="margin:0in; font-family:Calibri; font-size:14.0pt The timeout setting of this time on IIS is 1S.
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt
<p style="margin:0in; font-family:Calibri; font-size:14.0pt <span lang="en-US I have tried other settings like 60 Mins, but things keep show off like this. At the beginning, everything was fine, but after a while,
<span lang="zh-CN WinHttpWriteData<span lang="en-US will fail because of timeout.
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt
<p lang="en-US" style="margin:0in; font-family:Calibri; font-size:14.0pt Is there any option I should set when creating the session or any setting I can modify on server side?
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt
<p lang="zh-CN" style="margin:0in; font-family:Calibri; font-size:14.0pt Best Regards.
<br/>
View the full article