mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 23:32:51 +03:00
651caeba91
* Fix build for Windows (#1377) * Add tests for windows
12 lines
401 B
Go
12 lines
401 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package chat
|
|
|
|
func getMaximumConcurrentConnectionLimit() int64 {
|
|
// The maximum limit I can find for windows is 16,777,216
|
|
// (essentially unlimited, but add the 0.7 multiplier as well to be
|
|
// consistent with other systems)
|
|
// https://docs.microsoft.com/en-gb/archive/blogs/markrussinovich/pushing-the-limits-of-windows-handles
|
|
return (16777216 * 7) / 10
|
|
}
|