mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
feat: add tcp_user_timeout
```json {"streamSettings":{"sockopt": {"tcpUserTimeout": 10000}}} ``` run `gofmt -w -s .` as well
This commit is contained in:
parent
d9994538bc
commit
90d915ea05
5 changed files with 55 additions and 35 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
func TestXudpReadWrite(t *testing.T) {
|
||||
addr, _ := net.ParseDestination("tcp:127.0.0.1:1345")
|
||||
mb := make(buf.MultiBuffer, 0, 16)
|
||||
m := buf.MultiBufferContainer {
|
||||
m := buf.MultiBufferContainer{
|
||||
MultiBuffer: mb,
|
||||
}
|
||||
var arr [8]byte
|
||||
|
@ -33,4 +33,4 @@ func TestXudpReadWrite(t *testing.T) {
|
|||
if dest[0].UDP.Port != 1345 {
|
||||
t.Error("failed to parse xudp buffer")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue