Exception will throw if you open URL with delay

オープン
#3,637 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, java, javascript

調査の方向性

tns create apptns debug android で問題を再現し、遅延した URL のケースと 2 つのタブのケースも含めます。まず NanoWSD.javaNanoHTTPD.java のスタックフレームから始め、Android のデバッグフローが閉じられた接続または遅延した接続をどのように処理するかを追跡します。これらのシナリオで報告された broken-pipe 例外が発生しなくなれば完了です。

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

説明

backlog bug debug os: android to-be-checked
Tell us about the problem

exception will throw if you open URL with delay

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:
  • CLI: 4.1.0-rc
  • Runtime(s): 4.1.1-rc
Please tell us how to recreate the issue in as much detail as possible.
  1. tns create app
  2. tns debug android
    Please don't open the URL. Open it after 10 min(for example). You will see the following exception:
System.err: java.io.IOException: Broken pipe
System.err: 	at android.net.LocalSocketImpl.write_native(Native Method)
System.err: 	at android.net.LocalSocketImpl.-wrap2(Unknown Source:0)
System.err: 	at android.net.LocalSocketImpl$SocketOutputStream.write(LocalSocketImpl.java:154)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocketFrame.write(NanoWSD.java:700)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocket.sendFrame(NanoWSD.java:271)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocket.close(NanoWSD.java:135)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocket.handleCloseFrame(NanoWSD.java:184)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocket.handleWebsocketFrame(NanoWSD.java:218)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocket.readWebsocket(NanoWSD.java:246)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocket.access$200(NanoWSD.java:65)
System.err: 	at fi.iki.elonen.NanoWSD$WebSocket$1.send(NanoWSD.java:88)
System.err: 	at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:1011)
System.err: 	at fi.iki.elonen.NanoHTTPD$LocalClientHandler.run(NanoHTTPD.java:251)
System.err: 	at java.lang.Thread.run(Thread.java:764)

another case to reproduce this exception is:

  1. tns create app
  2. tns debug android
  3. copy URL from terminal and open 2 tabs.
  4. close the second tab and you will see the exception.
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NativeScript/nativescript-cli のほかの issue

NativeScript/nativescript-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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