rsocket-go icon indicating copy to clipboard operation
rsocket-go copied to clipboard

RequestStream with timeout context doesn't work

Open aiakit opened this issue 4 years ago • 2 comments

f = cli.client.RequestStream(payload.New(req.Bytes(), context.Marshal(c)))

cc, cancel := context.WithTimeout(context.TODO(), timeout)

f. SubscribeOn(scheduler.Parallel()). DoFinally(func(s rx.SignalType) { //todo handler rx.SignalType cancel() close(rsp) close(errs) }). Subscribe( cc, rx.OnNext(func(p payload.Payload) error { rsp <- payload.Clone(p).Data() return nil }), rx.OnError(func(e error) { errs <- e }), )

aiakit avatar May 26 '21 10:05 aiakit

Sorry for the late reply, I will check the timeout logic once I have time.

jjeffcaii avatar Jun 03 '21 03:06 jjeffcaii

The current Flux Processor doesn't support Context API, it will be supported in the near future.

jjeffcaii avatar Jun 10 '21 15:06 jjeffcaii