Linked Questions

1 vote
1 answer
542 views

are socket ports the same as regular ports [duplicate]

I read something I found contradictory with my current understanding of ports. If you google "how many ports does a server have", the first thing to come up states the following: The server ...
Jonas Grønbek's user avatar
210 votes
7 answers
191k views

TCP: can two different sockets share a port?

This might be a very basic question but it confuses me. Can two different connected sockets share a port? I'm writing an application server that should be able to handle more than 100k concurrent ...
K J's user avatar
  • 4,623
269 votes
5 answers
603k views

Increasing the maximum number of TCP/IP connections in Linux

I am programming a server and it seems like my number of connections is being limited since my bandwidth isn't being saturated even when I've set the number of connections to "unlimited". How can I ...
user avatar
172 votes
7 answers
159k views

How many socket connections can a web server handle?

Say if I was to get shared, virtual or dedicated hosting, I read somewhere a server/machine can only handle 64,000 TCP connections at one time, is this true? How many could any type of hosting handle ...
David's user avatar
  • 2,113
182 votes
2 answers
88k views

How many system resources will be held for keeping 1,000,000 websocket open? [closed]

Websocket is good, but would it be able to handle 1,000,000 concurrent connections? How many system resources will be needed for keeping 1,000,000 websocket open? Thanks!
k.k. lou's user avatar
  • 1,885
29 votes
3 answers
64k views

Maximum number of concurrent connections on a single port (socket) of Server

What could be the maximum number of concurrent Clients (using different port number) that could communicate to a Server on the same port (Single socket) ? What are the factors that could influence ...
Karthik Balaguru's user avatar
22 votes
6 answers
10k views

What determines number of simultaneous connections

In a Java servlet environment, what are the factors that are the bottleneck for number of simultaneous users. Number of HTTP connections the server can allow per port Number of HTTP connections the ...
Teddy's user avatar
  • 4,105
11 votes
3 answers
28k views

Passive and active sockets

Quoting from this socket tutorial: Sockets come in two primary flavors. An active socket is con­nect­ed to a remote active socket via an open data con­nec­tion... A passive socket is not ...
aslı's user avatar
  • 8,814
4 votes
2 answers
28k views

What is the theoretical maximum number of open TCP connections allowed on a Windows server [closed]

On my Windows server I have a port open listening to incoming TCP connections from multiple clients. Is there a limit to the number of unique clients that can concurrently establish a socket ...
Rahul J's user avatar
  • 93
5 votes
1 answer
10k views

How to make a realtime notification like facebook? [closed]

I am trying to make a realtime notification just like facebook.After learning and searching alot i m very confuse please explain me what is right and what is wrong.. Please make sure that the site ...
Anand Singh's user avatar
  • 2,363
9 votes
3 answers
3k views

Implementing dynamically updating upvote/downvote

How to implement dynamically updating vote count similar to quora:- Whenever a user upvotes an answer its reflected automatically for every one who is viewing that page. I am looking for an answer ...
akshay202's user avatar
  • 586
3 votes
3 answers
7k views

How multiple applications can use the same network port?

I was wondering, how multiple applications can use the same network port. AFAIK in TCP protocol 1 port is assigned to 1 socket connection. So how, for example, more than one internet browser can use ...
honkingForMoreSleeptime's user avatar
9 votes
3 answers
3k views

Best approach for writing a Linux Server in C (phtreads, select or fork ? )

i got a very specific question about server programming in UNIX (Debian, kernel 2.6.32). My goal is to learn how to write a server which can handle a huge amount of clients. My target is more than 30 ...
markus_p's user avatar
  • 574
7 votes
2 answers
10k views

Is it realistic for a single server to handle 2000 HTTP requests per second?

I am building a Java-based web service (using JSON as a data encoding) that will need to handle up-to 2,000 HTTP requests per second. The processing required for each request is almost negligible (a ...
sanity's user avatar
  • 35.6k
5 votes
2 answers
5k views

Is there a maximum number of connections for Unix domain sockets?

For TCP/IP connections there is a maximum of 64k connections between two hosts if there's a single destination port (source: What is the theoretical maximum number of open TCP connections that a ...
BvdBijl's user avatar
  • 607

15 30 50 per page