Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Socket.write doesn't restart timer #2002

Closed

Description

@piscisaureus

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

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

irc:

[15:46] <mafintosh> 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] <piscisaureus_> not that I know
[15:47] <piscisaureus_> what kind of timeout?
[15:48] <mafintosh> just a regular socket timeout
[15:48] <mafintosh> let me upload a gist to show what I mean...
[15:49] <mafintosh> https://gist.github.com/1336685
[15:49] <mafintosh> in v.4.12 this socket would stay alive - in v.5.10 it closes after 10 sec (the specified timeout)
[15:52] <piscisaureus_> mafintosh: yeah, looks that a `timers.active(self)` statement was omitted

Activity

  1. mafintosh commented on Nov 3, 2011

    @mafintosh
    Member

    This especially makes it difficult to stream back large files if they take take longer than 2 min to complete using the http server.

  2. added a commit that references this issue on Aug 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions