Software Development Kit (SDK) and API Discussions

NetApp ManageOntap SDK for .Net: Timeout is not set

ALEX_BARANOV
2,424 Views

Hello!

 

In ManageOntap SDK for .NET I can set Timeout for NaServer class. 

Netapp help says, that this property - "Gets or sets the number of seconds to wait before the request times out".

 

SDK using HttpWebRequest class for sending HTTP requests to NetApp.

When user set Timeout property of NaServer class, SDK set Timeout property of HttpWebRequest.

 

But HttpWebRequest have another property: ReadWriteTimeout, that is used for reading from request stream:

https://msdn.microsoft.com/ru-ru/library/system.net.httpwebrequest.readwritetimeout(v=vs.110).aspx

And this property is not affected by NaServer.Timeout property and is set to default value 300 seconds.

 

So if execution of command through Invoke method of NaServer takes mote then 300 seconds, it fails with error: Failed invoking API - Request Timeout.

 

Could you, please, set ReadWriteTimeout of HttpWebRequest in next version of this SDK?

 

 

 

 

0 REPLIES 0
Public