We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0a1444 commit 3080968Copy full SHA for 3080968
lf_toolkit/io/stream_io.py
@@ -91,6 +91,7 @@ async def _handle_client(self, client: StreamIO):
91
break
92
93
response = await self.dispatch(data.decode("utf-8"))
94
+ print(f"Responding: {response}") # and this
95
96
await io.write(response.encode("utf-8"))
97
except anyio.EndOfStream:
@@ -101,5 +102,4 @@ async def _handle_client(self, client: StreamIO):
101
102
103
except Exception as e:
104
print(f"Exception: {e}")
- finally:
105
- await client.close()
+ await client.close()
0 commit comments