Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Why throw sendTimeout error with the param 'connectTimeout' #15

Closed
1 task done
mingchaogui opened this issue Nov 12, 2021 · 1 comment
Closed
1 task done

Why throw sendTimeout error with the param 'connectTimeout' #15

mingchaogui opened this issue Nov 12, 2021 · 1 comment

Comments

@mingchaogui
Copy link

mingchaogui commented Nov 12, 2021

New Issue Checklist

  • I have searched for a similar issue in the project and found none

Issue Info

Info Value
Platform Name flutter
Platform Version 2.2.3
Dio Version 5.0.4
Android Studio / Xcode Version Android Studio 2020.3.1 Patch 3
Repro rate all the time
Repro with our demo prj It does
Demo project link NONE

Issue Description and Steps

dio_mixin.dart

      if (options.sendTimeout > 0) {
        byteStream.timeout(Duration(milliseconds: options.sendTimeout),
            onTimeout: (sink) {
          sink.addError(DioError(
            requestOptions: options,
            error: 'Sending timeout[${options.connectTimeout}ms]',
            type: DioErrorType.sendTimeout,
          ));
          sink.close();
        });
      }

And DioErrorType.connectTimeout has never been used.

@jgoyvaerts
Copy link
Contributor

This package is now archived. This was originally forked because the owner of the Dio package was inactive, but he has sinced returned from inactiveness and has added some more contributors to prevent this from happening again in the future. All future development continues over on Dio.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants