Featured post
c# - HttpWebRequest Connection Limit and RestFUL server -
i have created server product connecting social network servers , sending data status update etc. server authenticated necessary social networks servers users using solution.
actually, have no problem @ time, think will.
my server open thousands of concurrent request neccessary servers via http c# httpwebrequest instance. know it's possible change concurrent request limits below propery.
servicepointmanager.defaultconnectionlimit
afaik, limit max 100 evet set more 100.
so, faced bottleneck problem httpwebrequest change defaultconnectionlimit property of servicepointmanager.
i know guys thinking this. have suggestions ?
ignoring whether or not idea, have tried using unique connectiongroupname each request, e.g. guid.newguid().tostring()? connection limit per connection group may unless there global limit. should disable keepalive unless reusing group names subsequent requests. see answer httpwebrequest how handle (premature) closure of underlying tcp connection?.
- Get link
- X
- Other Apps
Comments
Post a Comment