473,473 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Exceed Persistent Connection Limit on a ServicePoint?

How can I exceed the number of persistent connections allowed on a
ServicePoint(which is 2 connections)? I believe this is the cause of the
problems with my thread from earlier titled "Unable to write data to the
transport connection & Timeout". After looking at the database, it appears
there are time overlaps(from when a connection goes out to when it comes
back), and during these overlaps is when I receive the timeout messages.

I have tried setting ServicePointManager.DefaultConnectionLimit to a higher
value, but that seems to have no effect. If there is no way to raise the
limit, how can I work around it? This is increasingly becoming a problem as
the site grows and there is more and more traffic.

Thanks,
Steve
Nov 15 '05 #1
5 4989
Have you tried editing your machine's Machine.config
settings? In the system.net node under
connectionManagement there is a maxconnection attribute.
The default is set to 2. Try increasing the number and see
that fixes the problem.
-----Original Message-----
How can I exceed the number of persistent connections allowed on aServicePoint(which is 2 connections)? I believe this is the cause of theproblems with my thread from earlier titled "Unable to write data to thetransport connection & Timeout". After looking at the database, it appearsthere are time overlaps(from when a connection goes out to when it comesback), and during these overlaps is when I receive the timeout messages.
I have tried setting ServicePointManager.DefaultConnectionLimit to a highervalue, but that seems to have no effect. If there is no way to raise thelimit, how can I work around it? This is increasingly becoming a problem asthe site grows and there is more and more traffic.

Thanks,
Steve
.

Nov 15 '05 #2
Nope, this didn't seem to have any effect. Any other ideas?

Thanks,
Steve

"Cole Breidenbach" <cy*********@yahoo.com> wrote in message
news:0a****************************@phx.gbl...
Have you tried editing your machine's Machine.config
settings? In the system.net node under
connectionManagement there is a maxconnection attribute.
The default is set to 2. Try increasing the number and see
that fixes the problem.
-----Original Message-----
How can I exceed the number of persistent connections

allowed on a
ServicePoint(which is 2 connections)? I believe this is

the cause of the
problems with my thread from earlier titled "Unable to

write data to the
transport connection & Timeout". After looking at the

database, it appears
there are time overlaps(from when a connection goes out

to when it comes
back), and during these overlaps is when I receive the

timeout messages.

I have tried setting

ServicePointManager.DefaultConnectionLimit to a higher
value, but that seems to have no effect. If there is no

way to raise the
limit, how can I work around it? This is increasingly

becoming a problem as
the site grows and there is more and more traffic.

Thanks,
Steve
.

Nov 15 '05 #3
Sorry to hear the Machine.config edit didn't work. Amazing
how the obvious setting change doesn't work all the time.
Well, the only other thing I can think of is the
limitation in the WinInet library that the .Net Framework
may be using for client HTTP connections. Here is a
knowledge base article for your review.

http://support.microsoft.com/default...id=kb%3Ben-us%
3B183110

Good luck.
-----Original Message-----
Nope, this didn't seem to have any effect. Any other ideas?
Thanks,
Steve

"Cole Breidenbach" <cy*********@yahoo.com> wrote in messagenews:0a****************************@phx.gbl...
Have you tried editing your machine's Machine.config
settings? In the system.net node under
connectionManagement there is a maxconnection attribute.
The default is set to 2. Try increasing the number and see that fixes the problem.
>-----Original Message-----
>How can I exceed the number of persistent connections

allowed on a
>ServicePoint(which is 2 connections)? I believe this is

the cause of the
>problems with my thread from earlier titled "Unable to

write data to the
>transport connection & Timeout". After looking at the

database, it appears
>there are time overlaps(from when a connection goes out

to when it comes
>back), and during these overlaps is when I receive the

timeout messages.
>
>I have tried setting

ServicePointManager.DefaultConnectionLimit to a higher
>value, but that seems to have no effect. If there is no

way to raise the
>limit, how can I work around it? This is increasingly

becoming a problem as
>the site grows and there is more and more traffic.
>
>Thanks,
>Steve
>
>
>.
>

.

Nov 15 '05 #4
I was under the impression that the .Net Framework did not make use of the
WinInet library. Is this not the case?

Thanks

"Cole Breidenbach" <cy*********@yahoo.com> wrote in message
news:00****************************@phx.gbl...
Sorry to hear the Machine.config edit didn't work. Amazing
how the obvious setting change doesn't work all the time.
Well, the only other thing I can think of is the
limitation in the WinInet library that the .Net Framework
may be using for client HTTP connections. Here is a
knowledge base article for your review.

http://support.microsoft.com/default...id=kb%3Ben-us%
3B183110


Nov 15 '05 #5
I'm not exactly sure what win32 api's are used for network
communication for .Net. Or, if .Net even uses the WinInet
api's. However, I know that 2 connections is the HTTP 1.1
protocal standard per HTTP specification. And since the
problem at hand is no more than two connections, I thought
maybe the default connection limit for WinInet could be
adjusted in the registry. There is no dought I could be
wrong on this one. But give it a try and see what happens.
-----Original Message-----
I was under the impression that the .Net Framework did not make use of theWinInet library. Is this not the case?

Thanks

"Cole Breidenbach" <cy*********@yahoo.com> wrote in messagenews:00****************************@phx.gbl...
Sorry to hear the Machine.config edit didn't work. Amazing how the obvious setting change doesn't work all the time. Well, the only other thing I can think of is the
limitation in the WinInet library that the .Net Framework may be using for client HTTP connections. Here is a
knowledge base article for your review.

http://support.microsoft.com/default.aspx?scid=kb%3Ben- us% 3B183110


.

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Randell D. | last post by:
Folks, I currently connect to my db with PHP code that uses non-persistent connections. I've read that persistent connections can help performance since a connection to the db will use an...
3
by: Derek Fountain | last post by:
For a low-ish traffic website that is doing the simple "build pages from HTML templates and info in a database" kind of thing, do the wise folks in this newsgroup advocate connecting and...
5
by: Felix E. Klee | last post by:
I've set up a PHP web application where users can log in and open a connection to a NNTP-server. There is a *one-to-one* relationship between sessions and NNTP-connections (i.e. exactly one...
6
by: David Rasmussen | last post by:
I use urllib2 to do some simple HTTP communication with a web server. In one "session", I do maybe 10-15 requests. It seems that urllib2 opens op a connection every time I do a request. Can I...
0
by: Rodrigo García | last post by:
Hi, I have a client application which runs several threads making calls to Web Services. Each thread has its own proxy instance to make the calls. Sometimes, a thread changes the...
5
by: Steve | last post by:
WSE352 Size of the record exceed its limit I have a C#.Net windows app that calls a FileNet web service. I can run a select against the web service and it returns up to 7,200 records with 5...
0
by: macyp | last post by:
I am trying to connect to a FTP server using the FtpWebRequest class in visual basic 2005. Right now, I am merely trying to get a list of files on the server. I have the IP address, the username...
9
by: mel | last post by:
Hi all, I need a persistent TCP connection with my web server over page reloads. This means that, even if the user goes to a different page (in my domain), I want to keep a TCP connection...
4
by: Sin Jeong-hun | last post by:
I don't get the message so it's hard to debug that, but some of my clients report that they get "The underlying connection was closed unexpectedly" exception. According to this site (http://...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.