Repository: flutter
Issue: HttpException: Unexpected response (unsolicited response without request) - related to DNS Blocking software
Labels: c: crash,tool,dependency: dart,P3,dependency: dart:io,team-tool,triaged-tool

Testing Flutter on Arch Linux this error happens every time a new application (generated by "flutter create") is executed for the second time, or after a second "hot reload".

The only "temporary fix" found is to delete the "~/.gradle" folder, but this cause a redownload of the gradle dist bundle at the next application run.

## command

flutter run -v

## exception

HttpException: HttpException: Unexpected response (unsolicited response without request).

```
#0      new _HttpClientConnection.<anonymous closure> (dart:_http/http_impl.dart:1704:9)
#1      _rootRunUnary (dart:async/zone.dart:1192:38)
#2      _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#3      _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#5      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#6      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#7      _StreamController._add (dart:async/stream_controller.dart:655:7)
#8      _StreamController.add (dart:async/stream_controller.dart:597:5)
#9      _HttpParser._headersEnd (dart:_http/http_parser.dart:413:17)
#10     _HttpParser._doParse (dart:_http/http_parser.dart:739:15)
#11     _HttpParser._parse (dart:_http/http_parser.dart:328:7)
#12     _HttpParser._onData (dart:_http/http_parser.dart:850:5)
#13     _rootRunUnary (dart:async/zone.dart:1192:38)
#14     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#15     _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#16     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#17     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#18     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#19     _StreamController._add (dart:async/stream_controller.dart:655:7)
#20     _StreamController.add (dart:async/stream_controller.dart:597:5)
#21     _Socket._onData (dart:io-patch/socket_patch.dart:1982:41)
#22     _rootRunUnary (dart:async/zone.dart:1192:38)
#23     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#24     _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#25     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#26     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#27     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#28     _StreamController._add (dart:async/stream_controller.dart:655:7)
#29     _StreamController.add (dart:async/stream_controller.dart:597:5)
#30     _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart:1018:19)
#31     _rootRun (dart:async/zone.dart:1180:38)
#32     _CustomZone.run (dart:async/zone.dart:1077:19)
#33     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#34     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#35     _rootRun (dart:async/zone.dart:1184:13)
#36     _CustomZone.run (dart:async/zone.dart:1077:19)
#37     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1003:23)
#38     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
#39     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#40     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#41     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
```

## flutter doctor

```
[✓] Flutter (Channel stable, v1.17.2, on Linux, locale en_US.UTF-8)
    • Flutter version 1.17.2 at /home/alenofx/Applications/flutter
    • Framework revision 5f21edf8b6 (2 days ago), 2020-05-28 12:44:12 -0700
    • Engine revision b851c71829
    • Dart version 2.8.3

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /home/alenofx/Android/Sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /home/alenofx/Applications/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at /home/alenofx/Applications/android-studio
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator)

• No issues found!
```