lesismal / nbio

Pure Go 1000k+ connections solution, support tls/http1.x/websocket and basically compatible with net/http, with high-performance and low memory cost, non-blocking, event-driven, easy-to-use.
MIT License
2.17k stars 153 forks source link

refactor: remove useless n > 0 check in flush() #428

Closed byene0923 closed 5 months ago

byene0923 commented 5 months ago

Conn().flush() is locked by c.mux, remove useless n>0 check