Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7024435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:50:21+00:00 2026-05-27T23:50:21+00:00

I have a crawler Java application which is supposed to connect to some HTTP

  • 0

I have a crawler Java application which is supposed to connect to some HTTP servers, download the HTML content of their pages, then move on to other HTTP servers. For this task, I’ve used the Apache HTTP library.

At the first few hours of the run, things seem to work rather smoothly (there are some connection-related exceptions thrown around from time to time, but that’s to be expected).
Yet after a while, it seems like I keep getting SocketTimeoutException on every request I send out. The exception does not occur on the HttpClient class’s “execute” method, but rather when I try to get the content of the Entity (which I retrieve from the HttpResponse object), or when I try to write that content to a file.

Then, if I stop the application, and start it over again, things seem to go back to working fine – even though it picks up from where it stopped at, meaning it’s interacting with the same servers which I received the SocketTimeoutException when trying to interact with before.

I tried looking for all kinds of possible clean-ups that I might be missing and might be essential when using this library, but couldn’t find anything.

Any help would be greatly appreciated.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:50:21+00:00Added an answer on May 27, 2026 at 11:50 pm

    This sounds like the kind of thing which could be caused by connection pools where you’re not closing things when you’re done with them, if the timeout occurs while the client library waits to retrieve a pooled connection. Are you sure you’re closing everything properly (in finally statements)?

    If you run Wireshark to monitor your traffic, what network traffic occurs while it’s “broken”?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a crawler application (with C#) that downloads pages from web . The
I am writing a small scale HTML crawler in java. I want to have
i have some doubt about PHP based web crawlers,can it run like the java
So, here's my question: I have a crawler that goes and downloads web pages
I have implemented a web crawler that crawls and retrieves content from .edu TLD.
I'm writing a special crawler-like application that needs to retrieve the main content of
I have a crawler that downloads webpages, scrapes specific content and then stores that
I have a very basic web crawler. The database table which stores the links
I have written a very basic crawler which scrapes product information from websites to
Hello guys I have a problem with my application involving Lucene java library and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.