Show More
@@ -1060,9 +1060,12 class unbundlepart(unpackermixin): | |||||
1060 | data = self._payloadstream.read() |
|
1060 | data = self._payloadstream.read() | |
1061 | else: |
|
1061 | else: | |
1062 | data = self._payloadstream.read(size) |
|
1062 | data = self._payloadstream.read(size) | |
|
1063 | self._pos += len(data) | |||
1063 | if size is None or len(data) < size: |
|
1064 | if size is None or len(data) < size: | |
|
1065 | if not self.consumed and self._pos: | |||
|
1066 | self.ui.debug('bundle2-input-part: total payload size %i\n' | |||
|
1067 | % self._pos) | |||
1064 | self.consumed = True |
|
1068 | self.consumed = True | |
1065 | self._pos += len(data) |
|
|||
1066 | return data |
|
1069 | return data | |
1067 |
|
1070 | |||
1068 | def tell(self): |
|
1071 | def tell(self): |
@@ -500,6 +500,7 Test part | |||||
500 | advisory: 0 |
|
500 | advisory: 0 | |
501 | bundle2-input: payload chunk size: 178 |
|
501 | bundle2-input: payload chunk size: 178 | |
502 | bundle2-input: payload chunk size: 0 |
|
502 | bundle2-input: payload chunk size: 0 | |
|
503 | bundle2-input-part: total payload size 178 | |||
503 | payload: 178 bytes |
|
504 | payload: 178 bytes | |
504 | bundle2-input: part header size: 22 |
|
505 | bundle2-input: part header size: 22 | |
505 | bundle2-input: part type: "test:debugreply" |
|
506 | bundle2-input: part type: "test:debugreply" | |
@@ -519,6 +520,7 Test part | |||||
519 | advisory: 1 |
|
520 | advisory: 1 | |
520 | bundle2-input: payload chunk size: 2 |
|
521 | bundle2-input: payload chunk size: 2 | |
521 | bundle2-input: payload chunk size: 0 |
|
522 | bundle2-input: payload chunk size: 0 | |
|
523 | bundle2-input-part: total payload size 2 | |||
522 | payload: 2 bytes |
|
524 | payload: 2 bytes | |
523 | bundle2-input: part header size: 29 |
|
525 | bundle2-input: part header size: 29 | |
524 | bundle2-input: part type: "test:song" |
|
526 | bundle2-input: part type: "test:song" | |
@@ -575,6 +577,7 Process the bundle | |||||
575 | The choir starts singing: |
|
577 | The choir starts singing: | |
576 | bundle2-input: payload chunk size: 178 |
|
578 | bundle2-input: payload chunk size: 178 | |
577 | bundle2-input: payload chunk size: 0 |
|
579 | bundle2-input: payload chunk size: 0 | |
|
580 | bundle2-input-part: total payload size 178 | |||
578 | Patali Dirapata, Cromda Cromda Ripalo, Pata Pata, Ko Ko Ko |
|
581 | Patali Dirapata, Cromda Cromda Ripalo, Pata Pata, Ko Ko Ko | |
579 | Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko |
|
582 | Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko | |
580 | Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko. |
|
583 | Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko. | |
@@ -594,6 +597,7 Process the bundle | |||||
594 | bundle2-input-part: "test:math" (advisory) (params: 2 mandatory 2 advisory) unsupported-type |
|
597 | bundle2-input-part: "test:math" (advisory) (params: 2 mandatory 2 advisory) unsupported-type | |
595 | bundle2-input: payload chunk size: 2 |
|
598 | bundle2-input: payload chunk size: 2 | |
596 | bundle2-input: payload chunk size: 0 |
|
599 | bundle2-input: payload chunk size: 0 | |
|
600 | bundle2-input-part: total payload size 2 | |||
597 | bundle2-input: part header size: 29 |
|
601 | bundle2-input: part header size: 29 | |
598 | bundle2-input: part type: "test:song" |
|
602 | bundle2-input: part type: "test:song" | |
599 | bundle2-input: part id: "5" |
|
603 | bundle2-input: part id: "5" |
General Comments 0
You need to be logged in to leave comments.
Login now