I have a very strange issue with C# HttpWebRequest (I cannot post the code because it would be a series of small one-liners from separate files). In WCF as a part of handling one of API requests I send request to other (Java) service to collect some data procces them and return in original WCF query. I use HttpWebRequest to query the external service. The problem occurs when the external service is done. Normally the server returns 503 from Java service to WCF service and WCF should immediately propagate the 503 as the result of initial request, and so happens during debugging. But whenever I quit debugging mode or deploy the service to dev environment it does not propagate the 503 but waits the timeout period (60s) and then returns the 503. This is not the expected behavior. It should always propagate the 503 immedietly. Has anyone ever experienced similar issue. It seems to be unrelated to code itself.
I would be grateful for any help.
Regards