New activity for FreeRADIUS (the high performance and highly configurable RADIUS server) ====== Doxygen Arran Cudbard-Bell@2015-06-28T03:11:27Z Files modified: * src/main/connection.c Commit diff: https://github.com/FreeRADIUS/freeradius-server/commit/36e1b02e926df5cd75d4d... ====== Support modifying the opaque data used by a pool on reconnect If a reconnect callback is registered 1. Lock the pool. 2. Block threads attempting to spawn new connections. 3. Wait until all pending spawn attempts have finished. 4. Close pool->start connections (ensures we have room to open new connections). 5. Mark all remaining connections as requiring reconnection. 6. Call reconnect callback. 7. Open pool->start connections. Old connections will be cleaned up and reconnected over time. fr_connection_pool_reconnect is thread safe. Arran Cudbard-Bell@2015-06-28T02:30:39Z Files modified: * src/include/connection.h * src/main/connection.c Commit diff: https://github.com/FreeRADIUS/freeradius-server/commit/eef7fff56d39d46e2b82d... ====== Don't reconnect connections, destroy the old one and get a new one The old reconnect code didn't release the mutex whilst spawning a new connection, presumably to keep the pool in a consistent state. This would have weird and annoying side effects. It's simpler just to close the connection and either get another existing one or spawn a new one. The reduction in complexity is worth the small performance penalty of allocating a new connection structure, and linking it into the pool. Arran Cudbard-Bell@2015-06-28T01:54:36Z Files modified: * src/main/connection.c Commit diff: https://github.com/FreeRADIUS/freeradius-server/commit/ec6425461458685ba8435... ====== Destroy pool mutex on free Arran Cudbard-Bell@2015-06-28T01:54:36Z Files modified: * src/main/connection.c Commit diff: https://github.com/FreeRADIUS/freeradius-server/commit/c85867725efe11d89d21e... ====== Note Arran Cudbard-Bell@2015-06-28T01:54:36Z Files modified: * src/main/connection.c Commit diff: https://github.com/FreeRADIUS/freeradius-server/commit/5d78a354d4880378df425... ====== -- This commit summary was generated @2015-06-29T00:00:04Z by lgfeed version 0.00 (https://github.com/arr2036/lgfeed).