We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5902913 + 163f965 commit 26beb15Copy full SHA for 26beb15
SKKServClient/Network/SKKServProtocol.swift
@@ -18,7 +18,7 @@ final class SKKServProtocol: NWProtocolFramerImplementation {
18
func handleInput(framer: NWProtocolFramer.Instance) -> Int {
19
while true {
20
var received: Data? = nil
21
- _ = framer.parseInput(minimumIncompleteLength: 4, maximumLength: 1024 * 1024) { buffer, isComplete -> Int in
+ _ = framer.parseInput(minimumIncompleteLength: 1, maximumLength: 1024 * 1024) { buffer, isComplete -> Int in
22
// 直前のリクエストがサーバーのバージョン要求、サーバーのホスト名とIPアドレスのリスト要求の場合はスペースが終端記号となりLFは送られない
23
// NOTE: 2024-03-15現在、yaskkserv2はIPアドレスのリスト要求の場合、スペースが終端記号になっていない
24
if let lastRequest, let buffer, let index = buffer.firstIndex(of: lastRequest.terminateCharacter) {
0 commit comments