Hi,
I am currently working on a small project, where I need to send a potentially large file over the internet.
After some debating I decided to go with the streaming option instead of a chunking approach. The files can potentially be very big, I don't really want to specify an exact upper bound, 2GB maybe 4GB, who knows.
Naturally this can take a long time. Again I don't really want to have a timeout. It just takes as long as it takes, doesn't matter.
While poking around trying different files of varying size, I slowly, step by step, tuned the properties of my BasicHttpBinding. I am just wondering if the values I came up with are basically okay, or if they are totally evil?
transferMode="Streamed"
sendTimeout="10675199.02:48:05.4775807"
receiveTimeout="10675199.02:48:05.4775807"
openTimeout="10675199.02:48:05.4775807"
closeTimeout="10675199.02:48:05.4775807"
maxReceivedMessageSize="9223372036854775807"
This just doesn't feel right somehow, these are just the maximum possible values for each underlying data structure. But I don't know what else to do.
So again:
Is this basically the right approach? Or did I completely misunderstand and misuse the framework here?
Thanks