/[Apache-SVN]
ViewVC logotype

Revision 1555774


Jump to revision: Previous Next
Author: rhuijben
Date: Mon Jan 6 13:59:45 2014 UTC (10 years, 3 months ago)
Changed paths: 4
Log Message:
In libsvn_ra_serf, replace the pause handling for the update response that was
embedded through the old -not transition based- xml parser with a pause
handling response handler wrapper directly in the update logic.

* subversion/libsvn_ra_serf/eagain_bucket.c
  New file.

* subversion/libsvn_ra_serf/ra_serf.h
  (svn_ra_serf__create_bucket_with_eagain): New function.

* subversion/libsvn_ra_serf/update.c
  (SPILLBUF_BLOCKSIZE,
   SPILLBUF_MAXBUFFSIZE,
   PARSE_CHUNK_SIZE): New defines.
  (fetch_file): Remove old pause handling.
  (end_report): Remove old pause handling.
  (update_delay_baton_t): New struct.
  (update_delay_handler): New function.
  (finish_report): Wrap xml handler with delay handling. Process remaining
    data if any.

* subversion/libsvn_ra_serf/util.c
  (inject_to_parser): Remove unused argument.
  (svn_ra_serf__process_pending): Update caller.
  (svn_ra_serf__handle_xml_parser): Don't fetch status line. Is unused and
    requires the response to be a response bucket, which is not always the
    case any more.


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_ra_serf/eagain_bucket.c added
Directorysubversion/trunk/subversion/libsvn_ra_serf/ra_serf.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_serf/update.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_serf/util.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26