An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was ful
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- cpp, flask
- 領域
- networking
調査の方向性
レポートでは、エントリポイントとして http::Request::send が、Flask の /gg エンドポイントが示されています。まず、示されている30秒のタイムアウトで GET リクエストを繰り返し再現し、リクエストのライフサイクルを調査してください。ソケットバッファまたはキューの枯渇の原因が特定され、検証済みの修正または明確な maintainer 向けガイダンスが記録されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Im using this header to send a request to my flask (python) hosted webserver, but after alot of requests, i got this error in my flask console:
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
which is can be solve immediately after i close my c++ program that requesting to the flask server and doesnt need to restart my webserver, which is lead to assumption its a error from my c++ program. The server and the c++ program are run on the same
server,same machine.
my code in c++ are simple just this
try {
http::Request request{ "http://xxx.xxx.xxx.xxx:5000/gg" };
// send a get request
const auto response =
request.send("GET", "", {}, std::chrono::milliseconds{ 30000 });
result = string{ response.body.begin(), response.body.end() };
}
catch (const exception& e) {
cout << "Request failed, error: " << e.what() << '\n';
}
```
I have read [this solution](https://stackoverflow.com/questions/17167977/httpwebrequest-issue-system-lacked-sufficient-buffer-space-or-because-a-queue-w), which it said should be enable keep alive, im not sure what is the correct solution and how to solve this issue.
- 主要言語
- C++
- スター
- 971
- フォーク
- 200
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
elnormous/HTTPRequest のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
elnormous/HTTPRequest#79 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
elnormous/HTTPRequest#77 ·
-
A couple of ideasオープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
elnormous/HTTPRequest#76 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
elnormous/HTTPRequest#75 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
elnormous/HTTPRequest#74 · コメント 1 件 ·
elnormous/HTTPRequest の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
lxqt/qtermwidget#688 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
cpinitiative/usaco-guide#6665 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mpfaffenberger/privateer_reimagined#658 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/onnxruntime#33018 ·
メンテナーはふだん 2 日以内に返信
-
Type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信