browserify / browserify/http-browserify

response events eventually stop.

オープン
#18 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
245
フォーク
104
PR マージ指標
30日以内にマージされた PR はありません

説明

I've been testing streaming JSON parsing and i ran in to this bug.

https://gist.github.com/mikeal/5471142

If you comment out the json parsing lines (those fail earlier than this bug surfaces due to a jsonstream bug, you can watch the length of all the chunks that get emitted.

In Firefox these events eventually stop and if you kill the server you'll get an exception when trying to read the last of the data.

In Chrome you'll eventually stop getting chunks with any data in them and it'll emit thousands of zero length chunks.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

リンクされた gist を再現手順として使用し、まず説明されているとおりにその JSON パース行を無効にします。Firefox と Chrome でレスポンスのチャンクイベントを比較し、停止するイベント、final-read exception、または長さ 0 のチャンクが数千件発生していないか確認します。これらの失敗なしにストリーミングレスポンスがデータを継続して配信すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
web-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。