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
CCI_EVENT_NONE used in tcp_handle_conn_reply #32
Comments
On May 13, 2013, at 10:59 AM, Rob Stewart notifications@github.com wrote:
Hi Rob, I believe this is fixed in master. Are you using the latest? If so, can you provide a test? Thanks, Scott |
HEAD of master still uses CCI_EVENT_NONE in Is it fixed in a local branch not yet pushed to github's master branch? |
On May 13, 2013, at 11:12 AM, Rob Stewart notifications@github.com wrote:
This is generating the TCP_MSG_CONN_ACK. We do not use it to generate a user event. In tcp_progress_conn_sends(), we see that it is a TCP_MSG_CONN_ACK and we recycle the tx. We set the type to CCI_EVENT_NONE as a sanity check. Thus, if we accidentally return it to the user, it should raise red flags. :-) This part was added in commit 946ffc6:
But many other changes were needed after that. What are you seeing? Scott |
The latest I have on this. Question: Should
So, am I correct in thinking |
On May 13, 2013, at 5:14 PM, Rob Stewart notifications@github.com wrote:
Ok, this clearly is a bug. Let me send you a patch today that will give us more info about the event. Scott |
OK no problem, happy to apply and re-run. My use case program always gives exactly the same erroneous behaviour, so reproducing it won't be a problem. |
On May 14, 2013, at 7:25 AM, Rob Stewart notifications@github.com wrote:
Rob, I have attached a patch. Can you tell more about the use case? Is a single client connecting multiple times? Is the server handling multiple connections from multiple peers in parallel? Are the peers trying to connect to each other concurrently? Scott |
Scott, attachments don't work via GitHub comments. Perhaps send to the email address that you have for me. |
Scott, I have produced three runs that produce CCI_EVENT_NONE. I have snipped with "...." repetitions of the same tcp_progress_queued and tcp_get_event sequences. Here they are: |
Hmm, I replied with another patch inline (i.e. in the text). It does not seem like github accepted it. |
Rob, I have pushed a fix. Can you try it out? Scott |
Hi Scott, I can confirm that commit 2c6975d fixed the issue. I cannot reproduce the erroneous behaviour. Thanks! |
Thanks for the bug report and testing! I'll close this issue. |
In the
event_type
typedef, the documentation forCCI_EVENT_NONE
states that:However, in the implementation of tcp_handle_conn_reply it is used here. The receiver when they next call
cci_get_event(..)
will receive this "internal" event.Has the
CCI_EVENT_NONE
event been misused in the implementation oftcp_handle_conn_reply
?The text was updated successfully, but these errors were encountered: