Using static vars meant all connections were using the same static vars! A bug that has existed since 2009! This code is ugly, but since it is such a fundamental piece of code for every operation, no refactoring is being done except to convert the static vars to data members renaming where required to avoid name conflicts. The one exception is that `cumLen` which was a per hdr.type variable is now a single data member across all types. Since for a single connection messages will be sequential this is expected to work (fingers crossed!) For the future we should look at replacing the custom RPC code with GRPC (issue #305). Fixes #304 |
||
---|---|---|
client | ||
common | ||
extra | ||
rpc | ||
server | ||
test | ||
.gitignore | ||
.travis.yml | ||
.vimrc | ||
COPYING | ||
install.pri | ||
options.pri | ||
ost.pro | ||
protobuf.pri | ||
README.md | ||
version.pri |
Ostinato
This is the code repository for the Ostinato network packet crafter and traffic generator
Visit https://ostinato.org for demo video and details
Source License: GPLv3+ (see COPYING)
Author's note
I have been developing and maintaining Ostinato single-handedly for more than 12 years. And during this time I have grudgingly come around to the view that open source cannot survive and thrive without money. Mixing money with open-source is messy, but I don't see a way forward unless we as a community become open to the idea of talking about it and changing our culture so that money is no longer a bad word.
I sell binary licenses on ostinato.org to try and cover the costs of development. Please consider buying those - they are priced low enough that you can afford it or you could just as easily expense them to your organisation.
If you build Ostinato from source and find it useful, please donate to keep the lights on and sustain the project.
Read the Ostinato origin story.
Srivats P
Author, Ostinato