Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsqd: snappy/deflate compression #229

Merged
merged 4 commits into from
Sep 10, 2013
Merged

Conversation

mreiferson
Copy link
Member

as originated in #226 and #227 this adds stream level snappy and deflate feature negotiation for clients of nsqd.

we moved this out to evaluate this separately from adding TLS.

cc @jayridge @jehiah

@mreiferson
Copy link
Member Author

this is rebased on #227, RFR

@mreiferson
Copy link
Member Author

also RFR @jehiah (but rebased on #264)

@@ -21,8 +21,9 @@ popd >/dev/null
pushd nsqd >/dev/null
go build
rm -f *.dat
echo "starting nsqd --data-path=/tmp --lookupd-tcp-address=127.0.0.1:4160 --tls-cert=./test/cert.pem --tls-key=./test/key.pem"
./nsqd --data-path=/tmp --lookupd-tcp-address=127.0.0.1:4160 --tls-cert=./test/cert.pem --tls-key=./test/key.pem >/dev/null 2>&1 &
cmd="./nsqd --data-path=/tmp --lookupd-tcp-address=127.0.0.1:4160 --tls-cert=./test/cert.pem --tls-key=./test/key.pem --deflate --snappy"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deflate and snappy are on by default; should we really add those flags here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not

@mreiferson
Copy link
Member Author

added large block chunk test (and fixed an issue in mreiferson/go-snappystream@93ed07e)

* add --deflate and --max-deflate-level flag
* add feature negotiation for nsqd clients
@mreiferson
Copy link
Member Author

squashed @jehiah

jehiah added a commit that referenced this pull request Sep 10, 2013
nsqd: snappy/deflate compression
@jehiah jehiah merged commit 57fea7e into nsqio:master Sep 10, 2013
windzhu0514 pushed a commit to windzhu0514/nsq that referenced this pull request May 15, 2020
Update golang version in Travis (to 1.10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants