Comments (7)
Oh yeah you hit a bug; retransmit timer gets reset by ACKs whereas it should not.
Specifically, by duplicate ACKs that arrive when the window is zero length, and pass through the duplicate ACK checks because they count as keepalives.
from smoltcp.
Thanks for looking at it, now I have to read the RFCs along with the code and find out how the timer is supposed to be set and kept.
from smoltcp.
Ok, finally got it working. Besides keeping the retransmission timer there was an overflow that needed to be fixed. Preparing a PR now.
from smoltcp.
@pothos I'm finally making progress on this—see d1e2292 for one method I'm using to expose underlying bugs. I am afraid that your fix is hiding one of them.
from smoltcp.
@pothos I've integrated a test quite like your taptest
in the commit 44db954. I've managed to expose one other bug as well.
from smoltcp.
Fixed in b247f64.
from smoltcp.
Thanks for including the fix - I am happy that the wrapping can be covered without distinction of cases ;)
from smoltcp.
Related Issues (20)
- add send_queue() for udp::Socket? HOT 1
- Access to neighbor cache from interface API HOT 1
- Packet flooding can cause `interface.poll()` to require excessive processing time
- Stuck at retransmitting syn HOT 4
- Listening TCP socket may accept RST destined for other socket
- Can multiple tcp sockets listening on the same endpoint of one interface? HOT 3
- plan of support TunTapInterface on macos? HOT 3
- Optimizing smoltcp->smoltcp (no operating system) throughput with loopback example HOT 2
- dns Question type not exported HOT 1
- Significant drop of bandwidth in presence of link delay HOT 2
- Bug in IPv6 source address selection (#864) prevents sending packets to localhost to localhost HOT 1
- `Ipv6Packet::scope` and `Scope` is private HOT 1
- How to make IPv6 handle any ip HOT 2
- UDP: Read and set local address on unbound sockets (IPV6_PKTINFO style functionality) HOT 4
- Use of `fugit` instead of custom time implementation. HOT 2
- run server example panics HOT 2
- Expose a C-API for legacy bare-metal systems
- Proposal: Improve the routing table by radix tree HOT 1
- feature request: impl AsFd for {RawSocket, TunTapInterface}
- How can I get neighbour cache from `Interface`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smoltcp.