Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received data #557

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/codegate/providers/copilot/provider.py
Original file line number Diff line number Diff line change
@@ -431,7 +431,7 @@ def data_received(self, data: bytes) -> None:
Handle received data from client. Since we need to process the complete body
through our pipeline before forwarding, we accumulate the entire request first.
"""
logger.info(f"Received data from {self.peername}: {data}")
# logger.debug(f"Received data from {self.peername}: {data}")
try:
if not self._check_buffer_size(data):
self.send_error_response(413, b"Request body too large")
@@ -452,7 +452,7 @@ def data_received(self, data: bytes) -> None:
if self._has_complete_body():
# Process the complete request through the pipeline
complete_request = bytes(self.buffer)
logger.debug(f"Complete request: {complete_request}")
# logger.debug(f"Complete request: {complete_request}")
self.buffer.clear()
asyncio.create_task(self._forward_data_to_target(complete_request))

Loading