Closed Bug 503235 Opened 17 years ago Closed 17 years ago

Too much "connection reset" by TB when reading newsgroups

Categories

(MailNews Core :: Networking: NNTP, defect)

1.8 Branch
x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 100522

People

(Reporter: luweitest, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 Build Identifier: version 2.0.0.22 (20090605) Reproducible: Always
Sorry for hitting enter by mistake before finishing report. I have a news server (Hamster playground 1.25.2) set in my PC and use TB to read from it, and I find that TB causes too much warnings like this: 2009-07-08 19:21:22 {136} TServerNNTP.SrvOnException(127.0.0.1:119): Socket Error # 10054 Connection reset by peer. 2009-07-08 19:21:23 {136} Client 127.0.0.1:119 disconnected Seems when switching to another subscribed group will cause those warnings. I tested Xnews will not cause this.
Severity: normal → minor
Summary: connection reset → Too much "connection reset" by TB when reading newsgroups
Version: unspecified → 2.0
Component: General → Networking: NNTP
Product: Thunderbird → MailNews Core
QA Contact: general → networking.nntp
Version: 2.0 → 1.8 Branch
I have some theories as to why this is happening... perhaps we're not being very active in reusing our connections. Can you get an NNTP log from Thunderbird itself? <https://wiki.mozilla.org/MailNews:Logging>.
Don't know how to change that "Reproducible: Always". It is reproducible, as long as you keep TB open, it will come to the state that much reset showing up, but I don't know definite steps to reproduce that. Parts of log when "reset" occurs: 0[2d4758]: (3b0f130) Next state: NNTP_RESPONSE 0[2d4758]: (3b0f130) Receiving: 211 101 1 101 mozilla.support.calendar 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE 0[2d4758]: (3b0f130) Next state: SETUP_NEWS_STREAM 0[2d4758]: (3b0f130) Next state: NNTP_XOVER_BEGIN 0[2d4758]: (3b0f130) SetCurrentGroup to mozilla.support.calendar 0[2d4758]: (3b0f130) Next state: NNTP_FIGURE_NEXT_CHUNK 0[2d4758]: (3b0f130) Next state: NEWS_PROCESS_XOVER 0[2d4758]: (3b0f130) Next state: NEWS_DONE 0[2d4758]: (3b0f130) Next state: NEWS_FREE 0[2d4758]: (3b0f130) CleanupAfterRunningUrl() 0[2d4758]: (3b0f130) setting busy to 0 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) ParseURL 0[2d4758]: (3b0f130) fullPath = /mozilla.support.thunderbird 0[2d4758]: (3b0f130) m_messageID = (null) 0[2d4758]: (3b0f130) group = mozilla.support.thunderbird 0[2d4758]: (3b0f130) commandSpecificData = (null) 0[2d4758]: (3b0f130) m_key = -1 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND 0[2d4758]: (3b0f130) Sending: GROUP mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: NNTP_RESPONSE 0[2d4758]: (3b0f130) Receiving: 211 267 1 267 mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE 0[2d4758]: (3b0f130) Next state: SETUP_NEWS_STREAM 0[2d4758]: (3b0f130) Next state: NNTP_XOVER_BEGIN 0[2d4758]: (3b0f130) SetCurrentGroup to mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: NNTP_FIGURE_NEXT_CHUNK 0[2d4758]: (3b0f130) Next state: NEWS_PROCESS_XOVER 0[2d4758]: (3b0f130) Next state: NEWS_DONE 0[2d4758]: (3b0f130) Next state: NEWS_FREE 0[2d4758]: (3b0f130) CleanupAfterRunningUrl() 0[2d4758]: (3d15658) ClosingConnection 0[2d4758]: (3d15658) Sending: QUIT 0[2d4758]: (3d15658) ClosingSocket() 0[2d4758]: (3d15658) CleanupAfterRunningUrl() 0[2d4758]: (3d15658) setting busy to 0 0[2d4758]: (3989c18) setting busy to 0 0[2d4758]: (3989c18) creating 0[2d4758]: (3989c18) initializing, so unset m_currentGroup 0[2d4758]: (3d15658) destroying 0[2d4758]: (3989c18) setting busy to 1 0[2d4758]: (3989c18) opening connection to localhost on port 119 0[2d4758]: (3b0f130) setting busy to 0 0[2d4758]: (3989c18) ParseURL 0[2d4758]: (3989c18) original message spec = news-message://localhost/mozilla.support.thunderbird#267 0[2d4758]: (3989c18) setting busy to 0 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) ParseURL 0[2d4758]: (3b0f130) fullPath = /mozilla.support.firefox 0[2d4758]: (3b0f130) m_messageID = (null) 0[2d4758]: (3b0f130) group = mozilla.support.firefox 0[2d4758]: (3b0f130) commandSpecificData = (null) 0[2d4758]: (3b0f130) m_key = -1 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND 0[2d4758]: (3b0f130) Sending: GROUP mozilla.support.firefox 0[2d4758]: (3b0f130) Next state: NNTP_RESPONSE 0[2d4758]: (3b0f130) Receiving: 211 252 1 252 mozilla.support.firefox 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE 0[2d4758]: (3b0f130) Next state: SETUP_NEWS_STREAM 0[2d4758]: (3b0f130) Next state: NNTP_XOVER_BEGIN 0[2d4758]: (3b0f130) SetCurrentGroup to mozilla.support.firefox 0[2d4758]: (3b0f130) Next state: NNTP_FIGURE_NEXT_CHUNK 0[2d4758]: (3b0f130) Next state: NEWS_PROCESS_XOVER 0[2d4758]: (3b0f130) Next state: NEWS_DONE 0[2d4758]: (3b0f130) Next state: NEWS_FREE 0[2d4758]: (3b0f130) CleanupAfterRunningUrl() 0[2d4758]: (3b0f130) setting busy to 0 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) ParseURL 0[2d4758]: (3b0f130) fullPath = /mozilla.support.thunderbird 0[2d4758]: (3b0f130) m_messageID = (null) 0[2d4758]: (3b0f130) group = mozilla.support.thunderbird 0[2d4758]: (3b0f130) commandSpecificData = (null) 0[2d4758]: (3b0f130) m_key = -1 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND 0[2d4758]: (3b0f130) Sending: GROUP mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: NNTP_RESPONSE 0[2d4758]: (3b0f130) Receiving: 211 267 1 267 mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE 0[2d4758]: (3b0f130) Next state: SETUP_NEWS_STREAM 0[2d4758]: (3b0f130) Next state: NNTP_XOVER_BEGIN 0[2d4758]: (3b0f130) SetCurrentGroup to mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: NNTP_FIGURE_NEXT_CHUNK 0[2d4758]: (3b0f130) Next state: NEWS_PROCESS_XOVER 0[2d4758]: (3b0f130) Next state: NEWS_DONE 0[2d4758]: (3b0f130) Next state: NEWS_FREE 0[2d4758]: (3b0f130) CleanupAfterRunningUrl() 0[2d4758]: (3989c18) ClosingConnection 0[2d4758]: (3989c18) Sending: QUIT 0[2d4758]: (3989c18) ClosingSocket() 0[2d4758]: (3989c18) CleanupAfterRunningUrl() 0[2d4758]: (3989c18) setting busy to 0 0[2d4758]: (3e37098) setting busy to 0 0[2d4758]: (3e37098) creating 0[2d4758]: (3e37098) initializing, so unset m_currentGroup 0[2d4758]: (3989c18) destroying 0[2d4758]: (3e37098) setting busy to 1 0[2d4758]: (3e37098) opening connection to localhost on port 119 0[2d4758]: (3b0f130) setting busy to 0 0[2d4758]: (3e37098) ParseURL 0[2d4758]: (3e37098) original message spec = news-message://localhost/mozilla.support.thunderbird#267 0[2d4758]: (3e37098) setting busy to 0 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) ParseURL 0[2d4758]: (3b0f130) fullPath = /mozilla.support.calendar 0[2d4758]: (3b0f130) m_messageID = (null) 0[2d4758]: (3b0f130) group = mozilla.support.calendar 0[2d4758]: (3b0f130) commandSpecificData = (null) 0[2d4758]: (3b0f130) m_key = -1 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND 0[2d4758]: (3b0f130) Sending: GROUP mozilla.support.calendar 0[2d4758]: (3b0f130) Next state: NNTP_RESPONSE 0[2d4758]: (3b0f130) Receiving: 211 101 1 101 mozilla.support.calendar 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE 0[2d4758]: (3b0f130) Next state: SETUP_NEWS_STREAM 0[2d4758]: (3b0f130) Next state: NNTP_XOVER_BEGIN 0[2d4758]: (3b0f130) SetCurrentGroup to mozilla.support.calendar 0[2d4758]: (3b0f130) Next state: NNTP_FIGURE_NEXT_CHUNK 0[2d4758]: (3b0f130) Next state: NEWS_PROCESS_XOVER 0[2d4758]: (3b0f130) Next state: NEWS_DONE 0[2d4758]: (3b0f130) Next state: NEWS_FREE 0[2d4758]: (3b0f130) CleanupAfterRunningUrl() 0[2d4758]: (3b0f130) setting busy to 0 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) setting busy to 1 0[2d4758]: (3b0f130) ParseURL 0[2d4758]: (3b0f130) fullPath = /mozilla.support.thunderbird 0[2d4758]: (3b0f130) m_messageID = (null) 0[2d4758]: (3b0f130) group = mozilla.support.thunderbird 0[2d4758]: (3b0f130) commandSpecificData = (null) 0[2d4758]: (3b0f130) m_key = -1 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND 0[2d4758]: (3b0f130) Sending: GROUP mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: NNTP_RESPONSE 0[2d4758]: (3b0f130) Receiving: 211 267 1 267 mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE 0[2d4758]: (3b0f130) Next state: SETUP_NEWS_STREAM 0[2d4758]: (3b0f130) Next state: NNTP_XOVER_BEGIN 0[2d4758]: (3b0f130) SetCurrentGroup to mozilla.support.thunderbird 0[2d4758]: (3b0f130) Next state: NNTP_FIGURE_NEXT_CHUNK 0[2d4758]: (3b0f130) Next state: NEWS_PROCESS_XOVER 0[2d4758]: (3b0f130) Next state: NEWS_DONE 0[2d4758]: (3b0f130) Next state: NEWS_FREE 0[2d4758]: (3b0f130) CleanupAfterRunningUrl() 0[2d4758]: (3e37098) ClosingConnection 0[2d4758]: (3e37098) Sending: QUIT 0[2d4758]: (3e37098) ClosingSocket() 0[2d4758]: (3e37098) CleanupAfterRunningUrl() 0[2d4758]: (3e37098) setting busy to 0 0[2d4758]: (3989c18) setting busy to 0 0[2d4758]: (3989c18) creating 0[2d4758]: (3989c18) initializing, so unset m_currentGroup 0[2d4758]: (3989c18) setting busy to 1 0[2d4758]: (3989c18) opening connection to localhost on port 119 0[2d4758]: (3b0f130) setting busy to 0 0[2d4758]: (3989c18) ParseURL 0[2d4758]: (3989c18) original message spec = news-message://localhost/mozilla.support.thunderbird#267 0[2d4758]: (3989c18) setting busy to 0 0[2d4758]: (3e37098) destroying
(In reply to comment #3) > Don't know how to change that "Reproducible: Always". It is reproducible, as > long as you keep TB open, it will come to the state that much reset showing up, > but I don't know definite steps to reproduce that. Judging from the log, this is a symptom of TB: 1. Opening up too many simultaneous connections 2. Closing them based on when it thinks they timed out, not when the connection actually times out (specifically, if we haven't used the connection for 170s). > 0[2d4758]: (3d15658) ClosingConnection > 0[2d4758]: (3d15658) Sending: QUIT As no preceding lines involves the instance at 3d15658, this means we closed it due to excessive inactivity... > 0[2d4758]: (3989c18) setting busy to 0 > 0[2d4758]: (3989c18) creating > 0[2d4758]: (3989c18) initializing, so unset m_currentGroup And apparently make another one since the other one is in use? The condition of our pessimism on the validity of connections would be handled by bug 100522, which is currently awaiting some action on my part to drive into the tree. As to the reading groups opening up new connections, that may be ameliorated in part by bug 311774 (which makes biff actually read stuff). I believe, therefore, that this bug is essentially a result of bug 100522.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.