Comments (2)
在win11上是可以同时绑定v4和v6的
在Linux上会报 Address already in use
let socket_v4 = SocketAddrV4::new(Ipv4Addr::UNSPECIFIED, port);
let socket_v6 = SocketAddrV6::new(Ipv6Addr::UNSPECIFIED, port, 0, 0);
let addr = TcpListener::new(socket_v4).join(TcpListener::new(socket_v6)).bind().await;
from salvo.
这个不是 salvo 的 bug,你直接用标准库里面的 TcpListener 也是一样。
你可以查看关于 IPv4-mapped IPv6 address 相关的问题。
from salvo.
Related Issues (20)
- Why write status code twice? HOT 7
- There is a probabilistic hang bug in the "graceful shutdown" phase HOT 2
- opanapi 接口组和接口的排序问题 HOT 1
- stack overflow when using recursive struct with openapi HOT 2
- features添加quinn后,无法在windows上交叉编译为linux二进制 HOT 4
- 2 features request. HOT 6
- `required` attribute for salvo_oapi endpoint macro HOT 2
- `hoop`的调用顺序是不是决定了中间件的执行顺序 HOT 1
- tls-rustls-reload example not reloading periodically HOT 1
- Backlog option/example for connections/sockets HOT 7
- 请教&mut Request两次读取数据问题 HOT 4
- HTTP/3 realization doesn't work HOT 1
- Tokio runtime panic when using QuinnListener HOT 6
- Feature: Consider supporting handler macro for structures' methods HOT 3
- Get matched route information HOT 1
- Add IpAddr and u16 "constructor" to conn::TcpListener HOT 1
- Enhance Error Handling in Compression Middleware to Properly Propagate Error(StatusError) in ResBody HOT 1
- implement IP filtering at the TCP level. HOT 1
- OAPI : #[salvo(schema(name = XXX))] expects an identifier instead of a "string" literal HOT 7
- OAPI : Short FlexNamer doesn't respect schemas name HOT 3
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 salvo.