At 47407 the content length for the message rolls over to > 64k.
ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47406 count=1 1+0 records in 1+0 records out 47406 bytes (47 kB) copied, 0.0118549 s, 4.0 MB/s ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah Content-Length 65536
ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47407 count=1 1+0 records in 1+0 records out 47407 bytes (47 kB) copied, 0.0116958 s, 4.1 MB/s ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah Content-Length 65540
At 47407 the content length for the message rolls over to > 64k.
ubuntu@ trusty- maas6:~ $ dd if=/dev/urandom of=blah bs=47406 count=1 trusty- maas6:~ $ maas local boot-resources create name=testing/ testing architecture= amd64/generic content@ =/home/ ubuntu/ blah
1+0 records in
1+0 records out
47406 bytes (47 kB) copied, 0.0118549 s, 4.0 MB/s
ubuntu@
Content-Length 65536
ubuntu@ trusty- maas6:~ $ dd if=/dev/urandom of=blah bs=47407 count=1 trusty- maas6:~ $ maas local boot-resources create name=testing/ testing architecture= amd64/generic content@ =/home/ ubuntu/ blah
1+0 records in
1+0 records out
47407 bytes (47 kB) copied, 0.0116958 s, 4.1 MB/s
ubuntu@
Content-Length 65540