OracleLob, Connection Pooling and Timeouts
Posted: Fri 15 Oct 2010 17:35
I've created a WCF service that is used for downloading files from a blob in Oracle and I'm running into a connection timeout issue.
Currently I have the connection timeout set to 1 minute. After downloading files for a minute I'll get a connection timeout error aborting a download.
Based on what I'm seeing it would appear that the same connection is being used for all the downloads even though I create a new connection and OracleLob object each download, so if the first say 5 downloads take 50 seconds and the 6th download takes 20 seconds the connection will timeout and abort the download. (60 second timeout and to finish the last download would go beyond 60 seconds).
My current options seem to be set the timeout=0 so it won't close the connection or don't use connection pooling.
I don't have this issue with System.Data.OracleClient from Microsoft as it lets each download take up to the full 60 seconds. I was wondering if there is a third option I'm unaware of so that I can get functionality similar to Microsofts.
Currently I have the connection timeout set to 1 minute. After downloading files for a minute I'll get a connection timeout error aborting a download.
Based on what I'm seeing it would appear that the same connection is being used for all the downloads even though I create a new connection and OracleLob object each download, so if the first say 5 downloads take 50 seconds and the 6th download takes 20 seconds the connection will timeout and abort the download. (60 second timeout and to finish the last download would go beyond 60 seconds).
My current options seem to be set the timeout=0 so it won't close the connection or don't use connection pooling.
I don't have this issue with System.Data.OracleClient from Microsoft as it lets each download take up to the full 60 seconds. I was wondering if there is a third option I'm unaware of so that I can get functionality similar to Microsofts.