summaryrefslogtreecommitdiff
path: root/accel-pppd/triton/triton.c
AgeCommit message (Collapse)Author
2014-11-22remove trailing whitespacesDmitry Kozlov
2014-11-17triton: lock pending calls list in triton_cancel_call()Guillaume Nault
The pending_calls field of struct _triton_context_t can be concurrently used by other contexts. So it must only be accessed or modified under protection of the context's lock (like in triton_context_call() or ctx_thread()). Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2014-10-04radius: various bug fixesDmitry Kozlov
2014-09-22triton: make level triggered events oneshot (EPOLLONESHOT)Dmitry Kozlov
2014-09-20rewrite of authentication/accounting proceduresDmitry Kozlov
This patch gets rid of synchronuos style of authentication/accounting. Synchronous style of authentication/accounting produced sleeping threads which becomes a problem when lots of sessions started/stopped and all they want authorization/accounting.
2014-09-13pppoe: start interfaces asynchronouslyDmitry Kozlov
When there are many interfaces to start accel-ppp stucks on startup because kernel slowly creates raw sockets. So starting this proccess asynchronous improves accel-ppp responsiveness
2014-09-09triton: fixed race conditionDmitry Kozlov
2014-06-03get out of SPINLOCK_INITIALIZER as it is not cross-platform compatibleDmitry Kozlov
2014-05-20triton: fix possible raceDmitry Kozlov
2014-05-18triton: fix possible raceDmitry Kozlov
2014-05-12triton: improved epoll events handlingDmitry Kozlov
2013-08-15triton: do not call context close if it is marked as need free (f.e. context ↵Dmitry Kozlov
already called triton_context_unregister)
2013-07-24triton: Fix race upon terminationGuillaume Nault
The triton_terminate() function works by setting the need_close flag of each triton context, then queues this context for execution by a triton thread if not already running. But if the context is already being run by a triton thread, it may not notice that its need_close flag has been updated (this flag is only checked at the beginning of ctx_thread()). So if no other event wakes up that context (i.e. if ctx_thread() isn't run again), it will never terminate. This patch moves the need_close flag check at the end of ctx_thread() so that a triton context can take the need_close flag into account event if it's updated while running. The context spinlock is also used to protect the need_close flag as it is concurrently updated by triton_terminate(). Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2013-04-22triton: Automatic setting of thread-count parameterGuillaume Nault
Use the number of available processors to set the thread-count option if not given in configuration file. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2012-06-21fixed race on terminationKozlov Dmitry
2012-02-27core: increase stack sizeKozlov Dmitry
2012-02-02fix load module orderKozlov Dmitry
2012-01-16core: fix context unregister bugKozlov Dmitry
2011-12-27core: queue zero-priority context if number of threads is reached maximumKozlov Dmitry
2011-12-27implemented logging to system loggerKozlov Dmitry
2011-12-27Revert "implemented logging to system logger"Kozlov Dmitry
This reverts commit ee41cba691ab9f6461f4933461cf82be161333de.
2011-12-27implemented logging to system loggerKozlov Dmitry
2011-12-09core: increase worker thread stack sizeKozlov Dmitry
2011-08-19snmp supportKozlov Dmitry
2011-05-30rewrited initialization procedure (fix gcc-4.6 builds)Kozlov Dmitry
2011-05-30set PTHREAD_STACK_MIN stack size for threadsKozlov Dmitry
2011-05-24fixed segfault at daemon terminationKozlov Dmitry
2011-03-05bugfixDmitry Kozlov
2011-01-28fix unterminated messages in core.logKozlov Dmitry
2011-01-26futher memory usage optimizationDmitry Kozlov
2011-01-05rename accel-pptp to accel-pppDmitry Kozlov