refactor: 大規模ファイル分割とプラグインリファクタリング
## 🎯 プラグイン整理 - ✅ **nyash-json-plugin**: プロバイダー抽象化、NodeRep統一 - ✅ **nyash-string-plugin**: TLVヘルパー整理 - ✅ **nyash-net-plugin**: HTTPヘルパー分離、ソケット管理改善 - ✅ **nyash-counter-plugin/fixture-plugin**: 基本構造整理 ## 📂 mir_interpreter分割 - ✅ **mir_interpreter.rs → mir_interpreter/ディレクトリ** - mod.rs: メイン構造体定義 - execution.rs: 実行エンジン - memory.rs: メモリ管理 - instructions/: 命令別実装 ## 🔧 その他の改善 - テストファイル群の最適化 - LLVMコンパイラのメイン関数整理 - 不要なインポート削除 1000行超のファイルを適切なモジュール構造に分割完了! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -149,11 +149,17 @@ pub fn parse_client_response_into(resp_id: u32, conn_id: u32) {
|
||||
let mut tmp = [0u8; 2048];
|
||||
loop {
|
||||
match s.read(&mut tmp) {
|
||||
Ok(0) => { return; }
|
||||
Ok(0) => {
|
||||
return;
|
||||
}
|
||||
Ok(n) => {
|
||||
buf.extend_from_slice(&tmp[..n]);
|
||||
if find_header_end(&buf).is_some() { break; }
|
||||
if buf.len() > 256 * 1024 { break; }
|
||||
if find_header_end(&buf).is_some() {
|
||||
break;
|
||||
}
|
||||
if buf.len() > 256 * 1024 {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Err(_) => return,
|
||||
}
|
||||
@ -191,7 +197,9 @@ pub fn parse_client_response_into(resp_id: u32, conn_id: u32) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if should_remove { map.remove(&conn_id); }
|
||||
if should_remove {
|
||||
map.remove(&conn_id);
|
||||
}
|
||||
}
|
||||
if let Some(rp) = state::RESPONSES.lock().unwrap().get_mut(&resp_id) {
|
||||
rp.status = status;
|
||||
@ -201,4 +209,3 @@ pub fn parse_client_response_into(resp_id: u32, conn_id: u32) {
|
||||
rp.client_conn_id = None;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user