.net - Is HttpWebRequest.Timeout a SendTimeout or a ReceiveTimeout? -


i'm guessing internally httpwebrequest class implemented using system.net.sockets.socket class.

if yes, equivalent of setting timeout property? setting socket.sendtimeout property, or rather socket.receivetimeout property?

ps: please don't answer question decompiling code!

with wcf requests, set send or receivetimout when configure request binding.

there bunch of different binding types depending on you're doing (tcp, http/s, pipes, etc.), setting timeouts looks this:

dim xbinding system.servicemodel.nettcpbinding = _           new system.servicemodel.nettcpbinding      xbinding    .sendtimeout = new timespan(0, 10, 0)    .receivetimeout = new timespan(0, 10, 0) ' ten minutes    ' can set message limits , such in here.  end 

obviously, you've go same thing on host side.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -