James F. Carter
9f56f38f42
Merge branch 'rationalise-ld-preload-tests' into develop
2018-02-14 16:48:57 +00:00
Patrick J Cherry
2e17e8955f
Added tests for NBD_MAX_SIZE
...
This constant is only used in the proxy, so the tests only cover proxy
mode.
2018-02-13 17:04:51 +00:00
Patrick J Cherry
b75a6529d0
Move LdPreload include to correct place
2018-02-09 10:41:24 +00:00
Patrick J Cherry
8e67180999
Check that TCP_NODELAY is set on upstream sockets on reconnection
...
Also rationalize the test to see if a function has been called. Still
not great, but getting there :)
2018-02-09 10:26:08 +00:00
Patrick J Cherry
8beb3f0af6
Allow proxy to pass NBD protocol errors downstream; server returns EINVAL/ENOSPC appropriately
...
Previously the proxy would just disconnect when it saw an NBD protocol
error, and retry the operation it was in the middle of.
Additionally, the server needs to return the correct error types when
this happens.
2018-02-08 13:19:51 +00:00
Patrick J Cherry
9c48da82cc
Rubocop
2018-02-02 21:34:14 +00:00
Patrick J Cherry
1b7b688f7a
Tidied up nbd init test
2018-02-02 21:30:55 +00:00
Patrick J Cherry
051576df6d
Remove warnings about Object#timeout
2018-02-02 20:46:46 +00:00
James F. Carter
679fa6dbf8
force binary encoding in a ruby2.1-compatible way
2016-10-05 11:54:09 +01:00
Patrick J Cherry
356e1fd6a1
Use a BINARY encoded string when doing read/write comparisons.
...
This is a bit of a cheat really, but `#read` returns an ASCII encoded
string, where as our ruby generates UTF-8 encoded strings, causing
assertion failures.
Fixes #20
2016-10-05 10:01:15 +01:00
Alex Young
fa8023cf69
Proxy prefetch cache becomes a command-line argument.
2014-02-27 14:21:36 +00:00