Commit e2806ea
CCBC-1647: Handle server-side query timeout (status 1080)
Motivation
==========
The 1080 (timeout) query status is not being handled. This means that if the server times out before the client, we return LCB_SUCCESS with an incomplete set of rows instead of LCB_ERR_TIMEOUT. Typically the client will time out before the server, however, it's possible for the server to time out first if the query grace period is set to something high enough.
Changes
=======
Return LCB_ERR_TIMEOUT when query returns the 1080 status code in the response body
Results
=======
Test passes
Change-Id: I309198fb864c0eb8e3050ac64391b30833c85a5e
Reviewed-on: https://review.couchbase.org/c/libcouchbase/+/215620
Reviewed-by: Sergey Avseyev <[email protected]>
Tested-by: Build Bot <[email protected]>1 parent 872c6c6 commit e2806ea
2 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
0 commit comments