joyent/node — Issue #2002: Socket.write doesn't restart timer
Author: piscisaureus
Created: 2011-11-03 14:56:22+00:00
State: open
Labels: net

Not sure if this is a bug. @ryah take a look.

Test: https://gist.github.com/1336685

irc:

```
[15:46] Is it on purpose that timeouts on sockets in v.5.10 occur even though you are writing at a regular interval, e.g. 1sec (but not reading anything) ?
[15:47] not that I know
[15:47] what kind of timeout?
[15:48] just a regular socket timeout
[15:48] let me upload a gist to show what I mean...
[15:49] https://gist.github.com/1336685
[15:49] in v.4.12 this socket would stay alive - in v.5.10 it closes after 10 sec (the specified timeout)
[15:52] mafintosh: yeah, looks that a `timers.active(self)` statement was omitted
```