kocolosk commented on issue #3939:
URL: https://github.com/apache/couchdb/issues/3939#issuecomment-1049016840


   It turns out that the backend does reject the write before fetching the 
attachment bodies, but `fabric:update_doc` will throw the edit conflict, which 
means the handler in `chttpd_db` skips the `WaitFun()` and instead calls 
`abort_multipart_stream`, which causes the parser to consume and discard all 
the remaining attachment data on the wire.
   
   So, that covers the interactive case. I still suspect that the 
`new_edits=false` case does not require this concurrent data race in order to 
trigger the timeout. It would be enough to submit the same request twice in a 
row; as far as I can tell at the moment the second request should hit the 
`WaitFun()` timeout.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to