aboutsummaryrefslogtreecommitdiffstats
path: root/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'context.c')
-rw-r--r--context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/context.c b/context.c
index c2192640a119..b53b0a08a1c7 100644
--- a/context.c
+++ b/context.c
@@ -285,6 +285,12 @@ apr_status_t serf_context_run(
### look at the potential return codes. map to our defined
### return values? ...
*/
+
+ /* Use the strict documented error for poll timeouts, to allow proper
+ handling of the other timeout types when returned from
+ serf_event_trigger */
+ if (APR_STATUS_IS_TIMEUP(status))
+ return APR_TIMEUP; /* Return the documented error */
return status;
}