Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to increase timeout in chopper #49

Closed
shresthaRam opened this issue May 8, 2019 · 2 comments
Closed

how to increase timeout in chopper #49

shresthaRam opened this issue May 8, 2019 · 2 comments
Labels
documentation Documentation related enhancement New feature or request help wanted Extra attention is needed no-issue-activity

Comments

@shresthaRam
Copy link

help or example needed : how to increase timeout in chopper ?

@lejard-h lejard-h added the enhancement New feature or request label May 11, 2019
@lejard-h
Copy link
Owner

connection timeout are very limited for now due to http package, it will probably require additional work.

But if you are on vm or flutter you can set the connectionTimeout you want

import 'package:http/io_client.dart' as http;
import 'dart:io';

ChopperClient(
    client: http.IOClient(
      HttpClient()..connectionTimeout = const Duration(seconds: 60),
    ),
  );

related http package issue: dart-lang/http#21

@lejard-h lejard-h added the help wanted Extra attention is needed label May 11, 2019
@lejard-h lejard-h added the documentation Documentation related label Jul 10, 2019
@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation related enhancement New feature or request help wanted Extra attention is needed no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants