Repository navigation
refactor: 全体を見直して、ずれを直し、使っていないコードを片づける - #62
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2BadDnB3uH3FDGjaPMP4J
- 自動検出を頼まないときも connectionType は LAN。mcs.ts のコメントを直す - GFX を H.264 と書いていたコメントを直す(connect.ts、channels.ts) - establish() は WebSocket だけでなく WebTransport からも来る。コメントを直す - 使っていないものを消す: RdpClient.errorInfo、ChunkStream.isClosed、 Clipboard.remoteHasText、PDUTYPE / PDUTYPE2 / CONTROL / PROTOCOL の使わない値 - 中だけで使うものは export しない(pdu.ts の RFX まわり、cliprdr.ts、input.ts の PTR など) - 重なりを減らす: トークンの取得、中止のときの文言と後片付け、ChunkStream の待ち、 RdpClient のチャネルへの送信、診断の GFX の行 - NTLM の unseal の文言、ツールのコメントを直す Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2BadDnB3uH3FDGjaPMP4J
- タイルを矩形で切る処理が 3 か所にあったのを rfx.ts の cutTile にまとめる(GFX の RemoteFX、Progressive、Surface Commands) - 試験でしか使っていなかった ProgressiveDecoder を消す。試験は ProgressiveTiles と ProgressiveFrame で gfx.ts と同じ道を通す - Progressive の通常の帯の表を rfx.ts の BANDS と共用する - 矩形の重なりを gfx.ts の clipRect にまとめ、clampRects も gfx.ts へ移す - Yuv444 と Yuv444GlRef の共通部分(3 面、draw、close)を基底クラスにまとめる。evenRect の繰り返しを evenRects にする - 32 ビットの BGRA から RGBA への変換を bitmap.ts の bgraToRgba にまとめる。LITTLE_ENDIAN も 1 つにする - GfxClient の totalFrames を stats.frames にまとめる。面を捨てるときの処理を forgetSurface にまとめる - MapSurfaceToOutput と MapSurfaceToScaledOutput の同じ処理をまとめる - AVC444 の時間の統計を 1 回ごとに丸めていたのをやめる。1ms 未満が 0 に切り捨てられて合計が小さく出ていた - Surface Commands の使わない destRight / destBottom を引数から外す - ポインタの効かない分岐、autoscale の重なった条件、ClearCodec の余分な代入を消す - コメントを短い文に直す Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2BadDnB3uH3FDGjaPMP4J
- /ws と /wt の中継の後始末を Relay.Serve にまとめる。接続の数、開け閉めのログ、思わぬ誤りのログを同じにする - QUIC の接続のコールバックで出た例外を捨てていたのを、ログに残す(OnShutdown を誰も付けていなかった) - 自動更新の MSI のログを mado.log と同じ logs に置く。data_dir を変えたときに場所がずれていた - 使っていないものを外す: datagram の送信、ReadSettings、PeerSettings、セッションの Authority / Gate / IsClosed、 RelayTokens.TtlSeconds、H3 の使っていない定数、ApiJson の使っていない型 - 中間証明書の取り出しを Acme.Intermediates にまとめる。DaysLeft で証明書を Dispose する - 待ち受けのアドレスの解釈、401 の返事、WebAssets の有無の確かめと返すのを 1 か所にする - コメントを直す: 宙に浮いていた QUIC_ADDR の説明、ApiJson の説明(ACME は使わない)、Qpack の文字列、 Program.cs の道の一覧(/logout と /update)、csproj の libmsquic、wxs のビルド例の版 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2BadDnB3uH3FDGjaPMP4J
…を今の Relay に合わせる Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2BadDnB3uH3FDGjaPMP4J
|
Claude finished @5ym's task in 27s —— View job レビュー結果主にサーバー側( 指摘するほどの不具合は見つからなかった。 確認できた点:
要確認(軽微)
テスト: |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2BadDnB3uH3FDGjaPMP4J
|
Claude finished @5ym's task in 21s —— View job レビュー結果サーバー側に加えて、web 側の 指摘するべき不具合は見つからなかった。
要確認(軽微)
テスト
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3 つに分けて見直した(サーバー、画面の復号と描画、接続と中継)。動きは変えていない。直したバグは統計とログの小さなものだけ。
サーバー
Relay.Serveにまとめた(ログと数え方がずれていた)画面の復号と描画
ProgressiveDecoderを消した接続と中継
そのほか
試験: .NET 89 件、web 298 件、tsc、biome、build:web。Windows の実機での確認はまだ(試験用 VM が止まっている)。
🤖 Generated with Claude Code
https://claude.ai/code/session_01M2BadDnB3uH3FDGjaPMP4J