Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream does not support concurrent Read or Write Operations? #8

Open
ghallas opened this issue Jul 27, 2010 · 1 comment
Open

Stream does not support concurrent Read or Write Operations? #8

ghallas opened this issue Jul 27, 2010 · 1 comment

Comments

@ghallas
Copy link
Contributor

ghallas commented Jul 27, 2010

While trying to save a document to CouchDB version 1.0.0 through Divan, I keep getting the following error:

System.NotSupportedException: The stream does not support concurrent IO read or write operations.
at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at Divan.CouchRequest.WriteData(HttpWebRequest request) in C:\projects\Divan\src\CouchRequest.cs:line 261
at Divan.CouchRequest.GetRequest() in C:\projects\Divan\src\CouchRequest.cs:line 245
at Divan.CouchRequest.GetResponse() in C:\projects\Divan\src\CouchRequest.cs:line 355
at Divan.CouchRequest.ParseT in C:\projects\Divan\src\CouchRequest.cs:line 273
at Divan.CouchRequest.Parse() in C:\projects\Divan\src\CouchRequest.cs:line 268
at Divan.CouchRequest.Check(String message) in C:\projects\Divan\src\CouchRequest.cs:line 203
at Divan.CouchDatabase.CreateDocument(ICouchDocument document) in C:\projects\Divan\src\CouchDatabase.cs:line 467
at Divan.CouchDatabase.SaveDocument(ICouchDocument document) in C:\projects\Divan\src\CouchDatabase.cs:line 227

I never got this before (I was using CouchDB 0.10) and I don't know if it's due to that change. Any ideas?

@ghallas
Copy link
Contributor Author

ghallas commented Jul 28, 2010

I used a threaded save approach. this probably interferes with other activity in the connectstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant