Commit ee555b0
authored
Fix NetworkWinHttp error for pending requests. (#1052)
When network destroyed, all pending requests callbacks should receive
OFFLINE_ERROR. To process them correctly, we need to stop
CompletionThread before closing WinHttp handles. Otherwise, it will
treat all pending requests as cancelled.
Resolves: OLPEDGE-2247
Signed-off-by: Kostiantyn Zvieriev <ext-kostiantyn.zvieriev@here.com>1 parent f2fea13 commit ee555b0
File tree
2 files changed
+11
-5
lines changed- olp-cpp-sdk-core/src/http/winhttp
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
275 | 280 | | |
276 | 281 | | |
277 | 282 | | |
| |||
892 | 897 | | |
893 | 898 | | |
894 | 899 | | |
895 | | - | |
| 900 | + | |
896 | 901 | | |
897 | 902 | | |
898 | | - | |
| 903 | + | |
899 | 904 | | |
900 | 905 | | |
901 | 906 | | |
902 | | - | |
| 907 | + | |
903 | 908 | | |
904 | 909 | | |
905 | 910 | | |
| |||
910 | 915 | | |
911 | 916 | | |
912 | 917 | | |
913 | | - | |
| 918 | + | |
914 | 919 | | |
915 | 920 | | |
916 | 921 | | |
| |||
964 | 969 | | |
965 | 970 | | |
966 | 971 | | |
967 | | - | |
| 972 | + | |
968 | 973 | | |
969 | 974 | | |
970 | 975 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
0 commit comments