| 67 | */ |
| 68 | #define CHUNK_ROWS (10000) |
| 69 | static int app__chunk_command(ipc_server_reply_cb *reply_cb, |
| 70 | struct ipc_server_reply_data *reply_data) |
| 71 | { |
| 72 | struct strbuf buf = STRBUF_INIT; |
| 73 | int row; |
| 74 | int ret; |
| 75 | |
| 76 | for (row = 0; row < CHUNK_ROWS; row++) { |
| 77 | strbuf_setlen(&buf, 0); |
| 78 | strbuf_addf(&buf, "big: %.75d\n", row); |
| 79 | ret = reply_cb(reply_data, buf.buf, buf.len); |
| 80 | } |
| 81 | |
| 82 | strbuf_release(&buf); |
| 83 | |
| 84 | return ret; |
| 85 | } |
| 86 | |
| 87 | /* |
| 88 | * Slowly reply with a series of lines. This is to model an expensive to |
no test coverage detected