NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

NetApp ManageOntap SDK for .Net: Timeout is not set

ALEX_BARANOV
2,823 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