Thread (82 messages) flat view 82 messages, 5 authors, 2016-08-06

Re: [PATCH v4 11/12] convert: add filter.<driver>.process option

From: Torsten Bögershausen <hidden>
Date: 2016-08-05 21:35:03

Possibly related (same subject, not in this thread)

On 2016-08-03 18.42, larsxschneider@gmail.com wrote:
The filter is expected to respond with the result content in zero
or more pkt-line packets and a flush packet at the end. Finally, a
"result=success" packet is expected if everything went well.
------------------------
packet:          git< SMUDGED_CONTENT
packet:          git< 0000
packet:          git< result=success\n
------------------------
I would really send the diagnostics/return codes before the content.
If the result content is empty then the filter is expected to respond
only with a flush packet and a "result=success" packet.
------------------------
packet:          git< 0000
packet:          git< result=success\n
------------------------
Which may be:

packet:          git< result=success\n
packet:          git< SMUDGED_CONTENT
packet:          git< 0000

or for an empty file:

packet:          git< result=success\n
packet:          git< SMUDGED_CONTENT
packet:          git< 0000


or in case of an error:
packet:          git< result=reject\n
# And this will not send the "0000" packet

Does this makes sense ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help