-1

How to set the ServerSocket connection limit unlimited ?

I checked this

Community
  • 1
  • 1

2 Answers2

1

The backlog is only the number of Socket you haven't accepted which can be queued. Normally 50 is more than enough. You can make the limit much higher but if you need more than a few hundred you have a serious design issue.

Peter Lawrey
  • 525,659
  • 79
  • 751
  • 1,130
0

You can't. The backlog is a queue in the kernel, and the kernel doesn't have infinite memory available to it. Nor would you want it to. The question doesn't really make sense.

user207421
  • 305,947
  • 44
  • 307
  • 483