AckingProtocolV1 only ever sends one ACK
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- networking
Research direction
Locate AckingProtocolV1 and inspect ack? together with the @next_ack and window_size handling described in the issue. Reproduce a sequence of server ACKs and verify that each subsequent ACK advances the sequence number rather than remaining tied to the first one.
Written by the indexing model from the issue text.
Description
A while ago I wrote a Python lumberjack client for logstash-1.4.2 which uses ruby-lumberjack version 0.0.22. I recently upgraded to logstash-2.3.2 and this pulled in version 0.0.26 which seems to no longer send more than one ACK.
I've debugged it and have found that there is a bug in the AckingProtocolV1 logic which means it will only ever send one ACK. AckingProtocolV1 sets the sequence number for the next ACK as @next_ack in method ack? but this is only set on the first time when @next_ack is nil, and not updated when the server has sent an ACK. The only time it would be updated would be if the client sent another window_size frame (which mine doesn't).
- Dominant language
- Ruby
- Stars
- 3
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elastic/ruby-lumberjack
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
elastic/ruby-lumberjack#27 · 1 reaction ·
-
elastic/ruby-lumberjack#24 · 1 comment · 1 assignee ·
-
elastic/ruby-lumberjack#23 · 1 assignee ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
elastic/ruby-lumberjack#21 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
elastic/ruby-lumberjack#19 ·
All issues in elastic/ruby-lumberjack
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100