]> git.baikalelectronics.ru Git - kernel.git/commit
[DCCP]: Initialise write_xmit_timer also on passive sockets
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Fri, 9 Mar 2007 21:47:58 +0000 (13:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2007 21:47:58 +0000 (13:47 -0800)
commit571bc9e24b6d2e0a3fee210e155dcecf80071418
treec3060d0005f6b035b43fe4e5855a1d514b43e589
parent8f98b3ff0b5e62890635ca07a6ba156ed7eef5c7
[DCCP]: Initialise write_xmit_timer also on passive sockets

The TX CCID needs the write_xmit_timer for delaying packet sends. Previously
this timer was only activated on active (connecting) sockets.

This patch initialises the write_xmit_timer in sync with the other timers, i.e.
the timer will be ready on any socket. This is used by applications with a
listening socket which start to stream after receiving an initiation by the
client.  The write_xmit_timer is stopped when the application closes, as before.

Was tested to work and to remove the timer bug reported on dccp@vger.

Also moved timer initialisation into timer.c (static).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/dccp.h
net/dccp/output.c
net/dccp/timer.c