mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #307, enable REUSEPORT to increase UDP buffer
This commit is contained in:
parent
a7f2bde8e2
commit
78aad11eeb
6 changed files with 54 additions and 10 deletions
|
@ -430,6 +430,11 @@ rtc_server {
|
|||
# @remark Should always turn it on, or Chrome will fail.
|
||||
# default: on
|
||||
encrypt on;
|
||||
# We listen multiple times at the same port, by REUSEPORT, to increase the UDP queue.
|
||||
# Note that you can set to 1 and increase the system UDP buffer size by net.core.rmem_max
|
||||
# or just increase this to get larger UDP recv and send buffer.
|
||||
# default: 4
|
||||
reuseport 4;
|
||||
}
|
||||
|
||||
vhost rtc.vhost.srs.com {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue