ios - Is there any way to enable NSURLSession to run more than 4 NSURLSessionUploadTasks concurrently? -


when create , start 20 nsurlsessionuploadtasks 3-4 run @ time, when httpmaximumconnectionsperhost set 20!

i understand can limit number of max uploads httpmaximumconnectionsperhost. however, want increase number of concurrent uploads. have started 'resumed' 20 new tasks 3 or 4 run concurrently. when 1 batch finishes, 3 or 4 more start until tasks have completed. not ok, because server requires substantial amount of time process each upload, meaning i'm not getting out of user's available bandwidth while server working respond post requests.

how can make nsurlsession run httpmaximumconnectionsperhost? httpmaximumconnectionsperhost works fine limit number of concurrent uploads, nsurlsession appears throttle down 3 or 4 regardless of value set httpmaximumconnectionsperhost. means httpmaximumconnectionsperhost allows choose between 1 , 4 concurrent uploads, instead of between 1 , your_max concurrent uploads!!

to clear, question is, there way run 5 or more concurrent uploads @ same time nsurlsessionuploadtask?

nsurlsessionuploadtask yes.

nsurlsession no.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -