MINOR: stream-int/conn-stream: Move half-close timeout in the conn-stream
The half-close timeout (hcto) is now part of the conn-stream. It is a step
closer to the stream-interface removal.
diff --git a/src/stream_interface.c b/src/stream_interface.c
index b4d7cab..9be918b 100644
--- a/src/stream_interface.c
+++ b/src/stream_interface.c
@@ -237,8 +237,8 @@
oc->wex = TICK_ETERNITY;
si_done_get(si);
- if (tick_isset(si->hcto)) {
- ic->rto = si->hcto;
+ if (tick_isset(si->cs->hcto)) {
+ ic->rto = si->cs->hcto;
ic->rex = tick_add(now_ms, ic->rto);
}
@@ -1106,8 +1106,8 @@
oc->wex = TICK_ETERNITY;
si_done_get(si);
- if (tick_isset(si->hcto)) {
- ic->rto = si->hcto;
+ if (tick_isset(si->cs->hcto)) {
+ ic->rto = si->cs->hcto;
ic->rex = tick_add(now_ms, ic->rto);
}
@@ -1756,8 +1756,8 @@
oc->wex = TICK_ETERNITY;
si_done_get(si);
- if (tick_isset(si->hcto)) {
- ic->rto = si->hcto;
+ if (tick_isset(si->cs->hcto)) {
+ ic->rto = si->cs->hcto;
ic->rex = tick_add(now_ms, ic->rto);
}