Files
nats-server/server
Ivan Kozlovic e5f0dabe08 Reduce memory allocations + fix c.NumConns that may have been wrong.
c.NumConns was set early to len(s.clients). However, after the sort, it was possible that the actual Conns[] array be much smaller due to minoff/maxoff.
So c.NumConns is now updated only after applying the offsets.
In order to pre-allocate the Conns buffer, I no longer skip a client if tlsRequired is true and connection is gone. I will simply not update the TLSVersion and TLSCipher.
2016-02-08 20:46:22 -07:00
..
2014-11-27 00:26:13 +01:00
2015-06-16 12:48:50 -07:00
2015-12-01 19:01:56 -08:00
2016-02-02 21:39:30 -08:00
2016-02-02 21:39:30 -08:00
2015-06-19 12:08:11 -07:00
2015-06-15 13:04:34 -07:00
2015-12-01 14:37:14 +08:00
2015-08-07 16:34:53 -04:00
2015-06-15 18:51:36 -07:00
2015-06-19 12:08:11 -07:00
2015-06-16 09:08:03 -07:00
2015-06-19 12:08:11 -07:00