New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mas-bandwidth/udp/003

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mas-bandwidth/udp/003

  • v0.0.0-20240417040012-425d60b9ce19
  • Source
  • Go
  • Socket score

Version published
Created
Source

003

Third attempt.

SO_REUSEPORT

https://medium.com/high-performance-network-programming/performance-optimisation-using-so-reuseport-c0fe4f2d3f88

To run:

go get
go run server.go

then in another terminal:

go run client.go

Results:

glenn@hulk:~/udp/003$ go run client.go
starting 1000 clients
sent delta 97545, received delta 97545
sent delta 94000, received delta 94000
sent delta 94110, received delta 94003
sent delta 94559, received delta 94666
sent delta 95927, received delta 95869
sent delta 95014, received delta 95072
sent delta 94000, received delta 93992
sent delta 94000, received delta 94008
^C
received shutdown signal
shutting down
done.

Once again, no change.

The reason is that we're sending all the packets from the same source IP address to the same dest IP address, so the hash is always the same, and they end up getting processed on one core only.

FAQs

Package last updated on 17 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc