Bug 6314 - CVS Communication Error
Summary: CVS Communication Error
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin McGuire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-26 11:34 EST by Jeff Butler CLA
Modified: 2001-11-26 14:12 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Butler CLA 2001-11-26 11:34:08 EST
On overworked CVS servers, the "synch with stream" operation will fail with a 
dialog stating "CVS Communication Error".  My suggestions are:

1. Add a configurable timeout value
2. Make a better error message - this took several hours of concentrated effort 
to find

My workaround was to build a dedicated CVS server.

I found this stack trace to let me know what the problem was:

Log: Mon Nov 19 15:51:20 CST 2001
4 org.eclipse.vcm.core 4 CVS communication error
java.io.InterruptedIOException: Read timed out
 at java.net.SocketInputStream.socketRead(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))
 at java.io.BufferedInputStream.fill(BufferedInputStream.java(Compiled Code))
 at java.io.BufferedInputStream.read(BufferedInputStream.java(Compiled Code))
 at org.eclipse.vcm.internal.core.ccvs.client.Connection.readLineOrUntil
(Connection.java(Compiled Code))
 at org.eclipse.vcm.internal.core.ccvs.client.Connection.readToken(Connection.ja
va:310)
 at org.eclipse.vcm.internal.core.ccvs.client.Client.processResponses(Client.jav
a:457)
 at org.eclipse.vcm.internal.core.ccvs.client.Client.processResponses(Client.jav
a:440)
 at org.eclipse.vcm.internal.core.ccvs.client.Client.execute(Client.java:293)
 at org.eclipse.vcm.internal.core.ccvs.CVSAdapter.fetchRemoteTree(CVSAdapter.jav
a:607)
 at org.eclipse.vcm.internal.core.Subscriber.refresh(Subscriber.java:517)
 at org.eclipse.vcm.internal.core.Subscriber$3.run(Subscriber.java:485)
 at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1197)
 at org.eclipse.vcm.internal.core.Subscriber.run(Subscriber.java:536)
 at org.eclipse.vcm.internal.core.SharingManager.run(SharingManager.java:676)
 at org.eclipse.vcm.internal.core.Subscriber.refresh(Subscriber.java:479)
 at org.eclipse.vcm.internal.ui.sync.Repository.doServerDelta(Repository.java:18
1)
 at org.eclipse.vcm.internal.ui.sync.Repository$1.execute(Repository.java:225)
 at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperati
on.java:64)
 at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1197)
 at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation
.java:78)
 at org.eclipse.vcm.internal.ui.sync.Repository.localServerDelta(Repository.java
:229)
 at org.eclipse.vcm.internal.ui.sync.SyncCompareInput.prepareInput(SyncCompareIn
put.java:434)
 at org.eclipse.compare.CompareEditorInput.run(CompareEditorInput.java:596)
 at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext
.java:98)
Comment 1 Jean-Michel Lemieux CLA 2001-11-26 14:12:48 EST
Fixed in 2.0.

CVS communication timeout is configurable via the preferences dialog. The 
timeout value is used for both extssh and pserver connection methods. In 
addition, if a timeout occurs the error message is more informative.