#321 add timeout feature for nntp

open
nobody
nntp (2)
5
2010-06-07
2010-06-07
David Allen
No

Some packages such as http support a timeout. For unreliable links this is very helpful. However, nntp simply uses "gets". See ::nntp::fetch. Please add a similar timeout feature for nntp. Using http as an approximate model, I have added this capability, using fileevent and vwait. Please see attachment; you can diff ::nntp::fetch, and please see additional functions ::nntp::getline and ::nntp::timeout. Unfortunately nntp also does not support convenient configuration of options, so I have used a hardcoded timeout of 60 seconds. This is probably not appropriate.

Discussion

  • David Allen
    David Allen
    2010-06-07

     
    Attachments