Hi c2c,
Ok, I took a deeper look into this. I didn't try reproducing with Lightstreamer, because I might have to get permission to use it with the license at Microsoft. I did however create a simple HTTP server in that does exactly why you describe. For each response the server repeatedly writes one line of data, using chunked transfer encoding, and then sleeps for 60 seconds. Using the default constructed http_client this will result in a http_exception with message "The operation timed out". By default our http_client uses a timeout of 30 seconds, however this is easily configurable. Can you try changing your construction of the http_client to be the following, increasing to 90 seconds:
Thanks,
Steve
Ok, I took a deeper look into this. I didn't try reproducing with Lightstreamer, because I might have to get permission to use it with the license at Microsoft. I did however create a simple HTTP server in that does exactly why you describe. For each response the server repeatedly writes one line of data, using chunked transfer encoding, and then sleeps for 60 seconds. Using the default constructed http_client this will result in a http_exception with message "The operation timed out". By default our http_client uses a timeout of 30 seconds, however this is easily configurable. Can you try changing your construction of the http_client to be the following, increasing to 90 seconds:
http_client_config config;
config.set_timeout(utility::seconds(90));
http_client client(U("http://localhost:8080"), config);
I'm a little confused by your callstack above it looks like parts are missing, but does this fix your problem?Thanks,
Steve