473,394 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Threading Connection Problems

I'm currently having problems setting up the max concurrent user
allowed to a server with a web service. I have a asmx file that
basically makes sql calls to a database and generates a XML file and
sends it back to the user. The user can select multiple items at once.
For each that they selected, a new thread is created and makes a call
to the asmx file. The first problem I had was that only two threads
where running at any given time. If I started 10 the first two would
connect, after the first finished the third would go, and so on and so
on.

I fixed this problem after reading a bunch of topics here by change the
<connectionManagement> node the machine.config file on the local system
to:

<connectionManagement>
<add address="*" maxconnection="10"/>
</connectionManagement>

This works fine. If I start 10 all 10 will connect at the same time and
everything is good. I then tried editing these files on my server to
limit the connections per user.

The problem I ran into is that the server settings didn't seem to limit
the connections. If I set the maxconnections to 2 on the server and 20
on the client the client could still open 20 connects.

This to me seemed like a big problem. Anyone wanting to do a DOS attack
on my sever could change the maxconnection to 100+ and keep hitting the
same asmx file.

Is there a way to make this change only on the server side?????? For
instance, is there a way I can leave the machine.config file alone on
the client side at maxconnection = "2" and only make the changes on
the server by setting maxconnections = "10" ???? I tried this and it
doesn't work the way it's supposed to where I've read articles on.

Or, is there away to make the changes in both places so that a DOS
attack would not be possible??

Any help would be greatly appreciated.

Oct 4 '05 #1
0 1350

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

Similar topics

6
by: Stephen Brooker | last post by:
Hi all, I've got a basic TCP app that is giving me trouble. I have a separate class that takes care of the TCP connection, and uses the NetworkStreams BeginRead and EndRead with a callback...
15
by: Phil | last post by:
Hi, I've a simple asp.net page with one button. In the OnClick event, I want to create a thread that will perform a long runninf task. Here is a sample code in the OnClick Thread t = new...
18
by: Frank Rizzo | last post by:
Hello, I have a class with all static methods that is called by multiple threads. I was wondering what effect that has on the competing threads. Does Thread2 have to wait until Thread1 is done...
0
by: Mike Caputo | last post by:
I'm connecting to a DB on a dual-processor 2.8 Ghz server with 2.5 gig RAM. So I've got plenty of muscle, and I'd like to do double-time on one update command. The command calls a stored procedure...
0
by: richard | last post by:
OS: Winxp and Win2003 Visual Basic.NET 2003 MS-SQL Server 2000 hey all I am a newbie in vb.net but i have managed to build a simple chat server in vb.net using socket and a client connecting...
4
by: Jerry Spence1 | last post by:
I have multiple threads in my application, each which open a connection to a database as follows: Sub ReaderThread() Dim cmd As New OleDbCommand Dim dr As OleDbDataReader cmd.Connection = cn...
10
by: jt | last post by:
The program works like this: There is a form with a button. When the form is loaded, a separate thread is started which is retreiving/updating data in the database every x seconds. When clicked...
7
by: Mike P | last post by:
I am trying to write my first program using threading..basically I am moving messages from an Outlook inbox and want to show the user where the process is up to without having to wait until it has...
1
by: Robert.R.Emmel | last post by:
Hello, I am using the threading module and the Queue module in python to to send out shipment tracking URL requests. Is there a way to timeout a thread within a Queue? I think the way I...
126
by: Dann Corbit | last post by:
Rather than create a new way of doing things: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2497.html why not just pick up ACE into the existing standard:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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...

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.