D8076: worker: Manually buffer reads from pickle stream

heftig (Jan Alexander Steffens) phabricator at mercurial-scm.org
Wed Feb 5 00:36:02 UTC 2020


heftig added a comment.


  I went for the wrapper overriding `read` after failing to find a way to ask `BufferedReader` whether data remains in the buffer. Even `peek` will trigger a blocking read when the buffer is empty.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8076/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8076

To: heftig, #hg-reviewers, yuja
Cc: yuja, mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list