XMRig - send buffer overflow
It seems that something is making xmrig (5.2.0) barf on a rather large block template.
Not sure if the pool is to blame, but I did see a `2407` chars block template, just as it happened.
On next block, xmrig connect again, and start submitting.

Is this the pool, monerod, or is it xmrig?
```
2019-12-15 06:56:13 TRACE src/pool.c:1513: Got block template: 
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "blockhashing_blob": "0c0cfd95d7ef05abc04a5ef09e9a2e8de029be3cb360ac532b5e1c232bddede24ed3825727bc9a00000000eda6a9fb4068d343dbb721c59f74d08a88454fe57eedaf33e0e7ff2d996d35b722",
==> "blocktemplate_blob": "0c0cfd95d7ef05abc04a5ef09e9a2e8de029be3cb360ac532b5e1c232bddede24ed3825727bc9a000000000286b57901ffcab47901abb68cedd33c02b6f558ee3965856bd141d07eff80e006e98a2555075a842f9edcc01bc8d7172c340196b718c364db5b4b71dc44d2fc0793d801e78188260465d3e0cc94eb44c87cda021100000000000000000000000000000000000021e6ae34c3b9d871071d35df276321c28d4342ddc07981b88ef1e5a55dd463b97465d3999e215ea7130cd985b176b640e4579b41fe67bb9db427a958f24d31cef1774e51172a69353925121dc51dbc92350b0725f552b985f257020a9de348162380a1e6c488e0d4049a9b85e24433023ff02f6d1a83e116cd933ee97a7e591b917b67b0ff1e100ac93bc62219fd69d08d0082a80c0a6a6d8ec9d6279950676b61d487ea49360ec09e59348b13e67331e1c9800a3d454a4ef528655ceab9803b6a57ab4e4e7232b9eac34c6fda848bd13c1fad042a44a746b42ec1d0dc035e94772ae7f35022dcc8e0009c1ca1270a5b59d0cc56c90e7c0a96fe486a7834c2433799a4b9dc8578455542ad400a036c43a6445b91ebfbabec23e6b194bddd2dbafc97b70d3880c7d5e2600c5ccc6dd4a2295d08355466c6109720e820142525c851155abf97942acf3f336d0bbe1da25687a0371c9b4fcc9f0848944e66aedc55d97f8badc200351f07135eff8fb154f4ab2cbd5eb5c2d307fe03cb17c06add5486a6272511b893779b7befba05f62aa58a5a837abbcca87a939f2981d1bfa398392c9ca60ca6c2c036f116c78b21daa09baae8c9ab22b94dd96cdcd0e87aff0c8ced4c5ecc41569178f013d2da09d17fc854d2c4540a56ffb9738c029aff5728513f722d7b88b8da778fde9b0c61dfe685d1227c3557d60d972ac3aa0f1a72cfa309b23b07835a36882e06c5469d2a94dfd71f8bd1959f977ea0e08132c24b4ef17b6a416652f0262cc4e1680870a087165d95eef0611e74d9654bda1b60dd90e4fa75db920ae42ad6f81ddd20378b5d1ab1725bf33c68fa49915407a658047e866fa763ffe7216b90fc03f389b4b2540e5e6a9a30ba8e70de7df33ee1681b5f27a64880311f898ce0f44bcfd0f34edd75e30a24efbc129dc93032f41327f71882f4b86d0418d2fcf1e1dac80549b88b1c78a0cdf0a0fa37b426e48cd526c182892a0f8ba73f076cfffd59fa76dd45cf04ed9b65043c1fe3747a9a9838bc2099cb820064043e552b1b696660096984fe28e539cb95df9ee70783c431d2003b39d7b73e9aa78894cbcf85b2d961e78ad8be5aafe3cc1871a45397297140ff61eea1b0955d467d8b71726f82e68aab8fb5d0bece881b5caf87f91e65883c79974f3c0cc90d4c4d35f84dac4f18c5246a1171088923a33e2a79b4375614af5ccd159a5b5ff00ad24c0f1e07715c1dcf66e7bb1a32997235d3b93c3c580b63c56eec9a4e474637a5885a8f308a5e0c27b542eca50a67f8414afcce215d62f40db0f6182baecf9fc66501f2b9be150337df0f1c338395efdf1a9a5021abed39ae28f162570e8136883669a87cfaeff61548c0cbe77a0cd1b7d0af2fffec09f35b5faa311c3846d53ef534441d23c93cd78697def2ffc4bc357c201d654877d5bf632a04f7d23f4c595c835732f928df6df86c95ed1d2b4b0ec8093353587f3cb3f19e77",
    "difficulty": 112831541011,
    "difficulty_top64": 0,
    "expected_reward": 2084093238059,
    "height": 1989194,
    "next_seed_hash": "",
    "prev_hash": "abc04a5ef09e9a2e8de029be3cb360ac532b5e1c232bddede24ed3825727bc9a",
    "reserved_offset": 128,
    "seed_hash": "be68fd3de3de1e2ed52e3b8f6be5ef8c6565a88bd3d88c936425b63696b7eaeb",
    "seed_height": 1988608,
    "status": "OK",
    "untrusted": false,
    "wide_difficulty": "0x1a4548af13"
  }
}
2019-12-15 06:56:13 TRACE src/pool.c:838: Recycle block template at height: 1989190
2019-12-15 06:56:13 TRACE src/pool.c:1282: Variant: 6
2019-12-15 06:56:13 DEBUG src/pool.c:859: Client 3e1e20afc9de4db48d5c4e63476199f3 target now 161886
2019-12-15 06:56:13 TRACE src/pool.c:1146: Client job: {"jsonrpc":"2.0","method":"job","params":{"id":"3e1e20afc9de4db48d5c4e63476199f3","job_id":"14fb5abb0045492caca00f86e6a2a7d9","target":"a2670000","extra_nonce":"1c00000081b4ba43", "pool_wallet":"44ch1jLCFmuHpsq6QMCWxMXMGbMdrEF9AHiMrzqBjPc5WyToE2eoXqEJZV7GpVMPxxCxBewpG9FCjY1riMccS6f8Fq6v5iV","seed_hash":"","next_seed_hash":""}}

2019-12-15 06:56:13 DEBUG src/pool.c:2602: Client disconnected. Removing.
2019-12-15 06:56:19 INFO  src/pool.c:2000: New client connected
2019-12-15 06:56:19 TRACE src/pool.c:2087: Client login for mode: self-select
2019-12-15 06:56:19 DEBUG src/pool.c:859: Client 3bad43a302654daaa75c4599e0947d59 target now 50000
2019-12-15 06:56:19 TRACE src/pool.c:1146: Client job: {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"3bad43a302654daaa75c4599e0947d59","job":{"job_id":"13cd81e1101d404182041af5b69cd8eb","target":"8b4f0100","extra_nonce":"1d00000081b4ba43", "pool_wallet":"44ch1jLCFmuHpsq6QMCWxMXMGbMdrEF9AHiMrzqBjPc5WyToE2eoXqEJZV7GpVMPxxCxBewpG9FCjY1riMccS6f8Fq6v5iV","seed_hash":"","next_seed_hash":""},"status":"OK"}}

2019-12-15 06:56:19 DEBUG src/pool.c:2602: Client disconnected. Removing.
```
**xmrig (5.2.0)**
```
[2019-12-15 06:52:23.630]  net  new job from localhost:8002 diff 161531 algo rx/0 height 1989193
[2019-12-15 06:52:48.484] speed 10s/60s/15m 1124.5 1133.2 1116.1 H/s max 1163.6 H/s
[2019-12-15 06:53:18.506] speed 10s/60s/15m 1156.1 1125.3 1115.6 H/s max 1163.6 H/s
[2019-12-15 06:53:48.527] speed 10s/60s/15m 1145.2 1131.3 1116.0 H/s max 1163.6 H/s
[2019-12-15 06:54:18.557] speed 10s/60s/15m 1148.7 1140.7 1115.8 H/s max 1163.6 H/s
[2019-12-15 06:54:48.587] speed 10s/60s/15m 1154.2 1144.0 1117.2 H/s max 1163.6 H/s
[2019-12-15 06:55:18.615] speed 10s/60s/15m 1117.7 1138.8 1119.4 H/s max 1163.6 H/s
[2019-12-15 06:55:19.214]  cpu  accepted (49/0) diff 161531 (34 ms)
[2019-12-15 06:55:48.649] speed 10s/60s/15m 1156.5 1137.5 1124.2 H/s max 1163.6 H/s
[2019-12-15 06:56:12.791]  cpu  accepted (50/0) diff 161531 (17 ms)

[2019-12-15 06:56:13.806] [localhost:8002] send failed: "send buffer overflow: 2766 > 2046"
[2019-12-15 06:56:13.806]  net  no active pools, stop mining
[2019-12-15 06:56:18.682] speed 10s/60s/15m 1127.0 1134.5 1128.4 H/s max 1163.6 H/s
[2019-12-15 06:56:19.508]  net  use pool localhost:8002  127.0.0.1
[2019-12-15 06:56:19.544] [localhost:8002] send failed: "send buffer overflow: 2766 > 2046"
[2019-12-15 06:56:19.544]  net  no active pools, stop mining
[2019-12-15 06:56:25.511]  net  use pool localhost:8002  127.0.0.1
[2019-12-15 06:56:25.529] [localhost:8002] send failed: "send buffer overflow: 2830 > 2046"
[2019-12-15 06:56:25.529]  net  no active pools, stop mining

[2019-12-15 06:56:31.514]  net  use pool localhost:8002  127.0.0.1
[2019-12-15 06:56:31.521]  net  new job from localhost:8002 diff 50000 algo rx/0 height 1989195
[2019-12-15 06:56:44.928]  cpu  accepted (51/0) diff 50000 (37 ms)
[2019-12-15 06:56:45.781]  cpu  accepted (52/0) diff 50000 (15 ms)
[2019-12-15 06:56:48.734] speed 10s/60s/15m 1141.7 785.5 1110.2 H/s max 1163.6 H/s
[2019-12-15 06:52:23.630]  net  new job from localhost:8002 diff 161531 algo rx/0 height 1989193
[2019-12-15 06:52:48.484] speed 10s/60s/15m 1124.5 1133.2 1116.1 H/s max 1163.6 H/s
[2019-12-15 06:53:18.506] speed 10s/60s/15m 1156.1 1125.3 1115.6 H/s max 1163.6 H/s
[2019-12-15 06:53:48.527] speed 10s/60s/15m 1145.2 1131.3 1116.0 H/s max 1163.6 H/s
[2019-12-15 06:54:18.557] speed 10s/60s/15m 1148.7 1140.7 1115.8 H/s max 1163.6 H/s
[2019-12-15 06:54:48.587] speed 10s/60s/15m 1154.2 1144.0 1117.2 H/s max 1163.6 H/s
[2019-12-15 06:55:18.615] speed 10s/60s/15m 1117.7 1138.8 1119.4 H/s max 1163.6 H/s
[2019-12-15 06:55:19.214]  cpu  accepted (49/0) diff 161531 (34 ms)
[2019-12-15 06:55:48.649] speed 10s/60s/15m 1156.5 1137.5 1124.2 H/s max 1163.6 H/s
[2019-12-15 06:56:12.791]  cpu  accepted (50/0) diff 161531 (17 ms)

[2019-12-15 06:56:13.806] [localhost:8002] send failed: "send buffer overflow: 2766 > 2046"
[2019-12-15 06:56:13.806]  net  no active pools, stop mining
[2019-12-15 06:56:18.682] speed 10s/60s/15m 1127.0 1134.5 1128.4 H/s max 1163.6 H/s
[2019-12-15 06:56:19.508]  net  use pool localhost:8002  127.0.0.1
[2019-12-15 06:56:19.544] [localhost:8002] send failed: "send buffer overflow: 2766 > 2046"
[2019-12-15 06:56:19.544]  net  no active pools, stop mining
[2019-12-15 06:56:25.511]  net  use pool localhost:8002  127.0.0.1
[2019-12-15 06:56:25.529] [localhost:8002] send failed: "send buffer overflow: 2830 > 2046"
[2019-12-15 06:56:25.529]  net  no active pools, stop mining

[2019-12-15 06:56:31.514]  net  use pool localhost:8002  127.0.0.1
[2019-12-15 06:56:31.521]  net  new job from localhost:8002 diff 50000 algo rx/0 height 1989195
[2019-12-15 06:56:44.928]  cpu  accepted (51/0) diff 50000 (37 ms)
[2019-12-15 06:56:45.781]  cpu  accepted (52/0) diff 50000 (15 ms)
[2019-12-15 06:56:48.734] speed 10s/60s/15m 1141.7 785.5 1110.2 H/s max 1163.6 H/s
```
