Commit 1958a82
committed
protocol/display: improve response processing
Improve performance for large responses by calling `socket.recv`
with an increased size:
- calculate default size according to socket parameters
- if we know it, take into account current response size
and how much data is needed to get the complete response1 parent e8ce50a commit 1958a82
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 25 | | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
590 | 597 | | |
591 | 598 | | |
592 | 599 | | |
593 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
594 | 603 | | |
595 | 604 | | |
596 | 605 | | |
| |||
0 commit comments