Skip to content

Conversation

@cceckman
Copy link
Owner

  • Program when running the programming program
  • More tests for host side
  • Document erratum on end flag
  • Demo, by simulation on host

@cceckman cceckman requested a review from slongfield March 29, 2025 23:46
```
∵ curl -v0 localhost:3278/counts
*   Trying 127.0.0.1:3278...
* Connected to localhost (127.0.0.1) port 3278 (#0)
> GET /counts HTTP/1.0
> Host: localhost:3278
> User-Agent: curl/7.88.1
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Host: Fomu
< Content-Type: text/plain; charset=utf-8
<

👍
* Closing connection 0
requests: 0001 ok_responses: 0001 error_responses: 0000
```
want_bytes = 1
# Input is done, in theory
p3 = Packet(flags=Flag.END, stream_id=1, body=bytes())
self.send(p3.to_bytes())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be the cause of the issue where we can't send more than one request. If I get rid of this line, I can get as many /coffee (418) and /counts responses I want from curl

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rewrite/split of "separate state machines" also fixed the "only one request", without getting rid of this -- and I think the "stop" is important to capture, so I'd like to leave this.

Merging this with the bug intact, #39 has the rewrite.

@cceckman cceckman merged commit 7091b75 into main Mar 31, 2025
1 check passed
@cceckman cceckman deleted the cceckman/load branch March 31, 2025 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants