ios - Many requests via Alamofire with request timeout -




i have case need send out many thousands of requests "at once" using normal foreach. naturally performing these requests takes time longer timeoutintervalforrequest.

what observe first few requests succeed after timeout interval has experied requests that did not complete yet fail. pretty normal behavior i'm looking solution requests fail when timeout interval expires once request did start.

from understanding when starting thousand requests few started , rest successively started once previous requests complete 1 after other.

in other words want timeout interval start counting down not @ moment data task get's called resume() on moment started , send out.

i don't want create actual chain, starting 1 request after another. slow down overall completion time of requests. should process in parallel not considered timeout when waiting longer timeout interval , not startet yet.

how that?





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -