Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TCP connection limit?, using HttpURLConnection

Peter Reitberger
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a multithreaded application that uses HttpURLConnection to send HTTP POST requests. I observe that threads are waiting when 3 TCP connections are in use (3 threads are sending) until one of the 3 connections is released again.
All request/response handling works well except for the restriction to 3 parallel connections at a time.

My question: is there a (configurable?) limit for TCP connections imposed by the JVM or operation system? I use JDK 1.4. on Solaris.

Thanks for any hints,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic