Skip to content

Commit

Permalink
Update debug patch; update pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
gamecss committed Jul 29, 2023
1 parent e986ae0 commit 00aec5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions debug.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/pyfsd/protocol/client.py b/pyfsd/protocol/client.py
index d9cdf55..829c823 100644
index dcdfd4c..d2291b5 100644
--- a/pyfsd/protocol/client.py
+++ b/pyfsd/protocol/client.py
@@ -57,6 +57,21 @@ class FSDClientProtocol(LineReceiver):
@@ -59,6 +59,21 @@ class FSDClientProtocol(LineReceiver):
ip=self.transport.getPeer().host, # type: ignore[attr-defined]
)
self.factory.triggerEvent("newConnectionEstablished", (self,), {})
Expand All @@ -24,7 +24,7 @@ index d9cdf55..829c823 100644

def sendLines(
self, *lines: bytes, auto_newline: bool = True, togerher: bool = True
@@ -232,7 +247,7 @@ class FSDClientProtocol(LineReceiver):
@@ -234,7 +249,7 @@ class FSDClientProtocol(LineReceiver):

try:
cid_str = cid.decode("utf-8")
Expand All @@ -33,7 +33,7 @@ index d9cdf55..829c823 100644
except UnicodeDecodeError:
self.sendError(FSDErrors.ERR_CIDINVALID, env=cid, fatal=True)
return
@@ -302,7 +317,8 @@ class FSDClientProtocol(LineReceiver):
@@ -305,7 +320,8 @@ class FSDClientProtocol(LineReceiver):
)
self.factory.triggerEvent("newClientCreated", (self,), {})

Expand All @@ -43,7 +43,7 @@ index d9cdf55..829c823 100644

def handleRemoveClient(self, packet: Tuple[bytes, ...]) -> None:
if len(packet) == 0:
@@ -746,6 +762,16 @@ class FSDClientProtocol(LineReceiver):
@@ -749,6 +765,16 @@ class FSDClientProtocol(LineReceiver):
# Acquire without lock it (nearly)
pass

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ profile = "black"
start = "twistd -n pyfsd"

[tool.pdm.build]
includes = ["pyfsd/", "twisted/"]
includes = ["pyfsd/", "twisted/", "pyfsd/plugins/__init__.py"]
excludes = ["pyfsd/plugins/*"]

[tool.pdm.version]
source = "call"
Expand Down

0 comments on commit 00aec5d

Please sign in to comment.