mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02:00
parent
b1e5d95841
commit
dbcdc904b9
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ func (app *App) handleWS(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
connections := atomic.AddInt64(app.connections, 1)
|
connections := atomic.AddInt64(app.connections, 1)
|
||||||
if int64(app.options.MaxConnection) != 0 {
|
if int64(app.options.MaxConnection) != 0 {
|
||||||
if connections >= int64(app.options.MaxConnection) {
|
if connections > int64(app.options.MaxConnection) {
|
||||||
log.Printf("Reached max connection: %d", app.options.MaxConnection)
|
log.Printf("Reached max connection: %d", app.options.MaxConnection)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue