question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cancelling request makes delay in subsequent connection

See original GitHub issue

I am using RxJava adapter of Retrofit to make API calls. I have implemented cancel request in onBackPressed of Activity so the call can get canceled when user tap the back:

client.dispatcher().cancelAll();

It does cancel all the request and my Rx also throws the correct exception. But when I open the activity again it takes about 1 minute delay before it process a API new request. Why is there a delay?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
peterpjscommented, Feb 19, 2019

good job man

1reaction
zishanjcommented, Jan 28, 2019

Yes, its reproducing every time in the way I have mentioned in my last comment. My test site is on HTTP/1.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Respond to a Cancellation Requests + Email Templates
Below are 10 cancelation request response templates: 7 short response examples that you can use in email or over chat and 3 cancellation...
Read more >
Your flight is canceled or delayed – here's what you should do ...
Airline delays and cancellations are happening frequently; here's how to avoid getting stuck if it happens to you.
Read more >
Request Cancellation - YouTube
Every week in my Tuesday Lunch & Learn livestream, we choose a useful software development skill, define a challenge related to that skill, ......
Read more >
What to Do if Your Flight Is Cancelled or Delayed
If possible, try to book directly through the airline rather than through an online travel agency, which may make it more difficult to...
Read more >
Flight Delays & Cancellations | US Department of Transportation
The Department's rules regarding flight delays and cancellations ... is cancelled, most airlines will rebook you for free on their next ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found