首页 > 解决方案 > SocketException: Connection failed (OS Error: Too many open files, errno = 24),

问题描述

我正在使用颤振。并且previoulis 我的代码现在工作得很好。当我调试时出现错误:发生异常。SocketException (SocketException: Connection failed (OS Error: Too many open files, errno = 24), address = 192.168.8.102, port = 8080)。我的代码

    http.Response response = await http.get(
        Config.serverAddress + "/**/***/getByPhone?phone=" + phone+"&key="+Config.key,
        headers: Config.userHeader);

    if (response.statusCode == 200) {
      List result = jsonDecode(response.body) as List;
      Config.goodConnection = 1;

      return result;
    } 
      Config.goodConnection = 0;
    return [];
  } ```

Complete error
[![enter image description here][1]][1]


  [1]: https://i.stack.imgur.com/NtpB4.png

标签: flutter

解决方案


推荐阅读