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 6927869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:06:39+00:00 2026-05-27T11:06:39+00:00

I am using a thread launched from android local Service,after I let my phone

  • 0

I am using a thread launched from android local Service,after I let my phone goes to sleep mode,then reuse it later after a while I get connection reset in my server side.

I am looking why it happens that connection reset,looking for this for a days ago.

  • 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-27T11:06:40+00:00Added an answer on May 27, 2026 at 11:06 am

    I have the same problem, and the server also gets a RST when it send some ping packet to android phone after phone’s several minutes sleep.

    I think the post below may answer some questions:
    http://groups.google.com/group/android-developers/browse_thread/thread/8a611b2aeaa4d620

    What network are you using (phone network or WIFI)?

    My phone is connect via EDGE network.
    I made the server send message every 6 minutes, and the server always get RST after the first 6 minutes, but 5 minutes will keep the connection alive. And I also tried to let the server sent message every 2 minutes (phone’s screen is off), the connection can keep alive for a long time (I tested for one hour and more).

    Then I keep the phone’s screen on (it will not sleep) and tried again, but after 6 minutes the connection was killed again (server got RST), so it seems android sleep is not the cause of RST.

    Based on my testings, I think my phone network vender is killing these long-time connections that idle at least 6 minutes, and send the RST to both phone and server.
    So it may have nothing to do with phone sleep.

    I havn’t tested on other networks, please tell me the results if you do.

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

Sidebar

Related Questions

I am using a thread to capture stream output from a process, and then
I am using thread which will receive messages from the external application.So my thread
What is the difference between using a new thread and using a thread from
Nutshell: I launch a thread from my form, then some time later use the
When using a thread pool and its queuecallbackitem, can I not pass in a
I am using the thread.Abort method to kill the thread, but it not working.
Is writing to stdout using printf thread-safe on Linux? What about using the lower-level
I am using vc++ and creating a thread using CreateThread function .Can I restart
I want to start a new thread using a C function, not an objective-C
I implemented a TCP Client using a thread opening a socket to a server

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.