Can multiple stream uploads be active at the same time? #168
-
For example; there is a huge file upload that is going slowly in the first stream. Does that mean that all other streams, which might be significantly faster and more important, have to wait for the first one to finish, or may other streams be processed in parallel? I am not sure if I am looking at the correct thing, but this excerpt might indicate that due to write lock, only one stream might be active at the time in either direction. Is this correct?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
Correct, you don't want multiple concurrent writers to a stream. The data would then be interleaved. You would want to use multiple separate connections. |
Beta Was this translation helpful? Give feedback.
-
This makes perfect sense, but it would be super useful for me. For example, I have multiple network streams, users uploading their data, which is proxied to dedicated service. Without concurrent streams a single user might block upload for everyone else indefinitely also. |
Beta Was this translation helpful? Give feedback.
Correct, you don't want multiple concurrent writers to a stream. The data would then be interleaved. You would want to use multiple separate connections.