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

broken pipe error #6

Closed
johnwilson opened this issue Jun 4, 2013 · 7 comments
Closed

broken pipe error #6

johnwilson opened this issue Jun 4, 2013 · 7 comments

Comments

@johnwilson
Copy link

Hello!

I'm currently using your package in a project and am having the following error:
write tcp 127.0.0.1:6379: broken pipe .

My implementation is here:
https://github.com/johnwilson/bytengine/blob/master/kernel/modules/auth.go#L320

I create the connections here:
https://github.com/johnwilson/bytengine/blob/master/kernel/modules/sysinit.go#L110

A print of the Req returned contains EOF in the string

Any help/suggestion will be greatly appreciated.

Thanks for making your client available to us!

Cheers

@vmihailenco
Copy link
Collaborator

Hi,

AFAIK that means that Redis closed connection. Can you raise Redis loglevel and look at Redis logs?

@johnwilson
Copy link
Author

Hi, thanks for getting back to me. I'll have a look at the logfiles and figure it out.

regards
john

@johnwilson
Copy link
Author

hi vmihailenco,
you were right, thanks for the assist!
regards
john

@mratzloff
Copy link

Any suggestions for detecting a closed connection? Other than doing a string match for "broken pipe" against the error response?

@vmihailenco
Copy link
Collaborator

What do you try to achieve?

@mratzloff
Copy link

I'm trying to distinguish a closed connection from another type of error response.

@vmihailenco
Copy link
Collaborator

That does not explain why you want to do it. But yes, matching for "broken pipe" should work.

ofekshenawa added a commit to ofekshenawa/go-redis that referenced this issue Oct 30, 2023
ofekshenawa added a commit that referenced this issue Oct 30, 2023
* Add support for RedisJSON

* Add optional args and tests

* Add more tests

* Add more tests

* Add more tests and cleanups

* Add docstring

* update JSONArrIndex and matching texts

Rename JSONArrIndexWithArgs to JSONArrIndexArgs
change name of args struct to match function name for consistency
change arg types to int (for required arg) and *int (for optional)

* update JSONArrTrim and matching texts

Rename JSONArrTrimWithArgs to JSONArrTrimArgs
change name of args struct to match function name for consistency
change arg types to int (for required arg) and *int (for optional)

* update JSONGetWithArgs and matching texts

Rename JSONGetWithArgs to JSONGetArgs
Removed Paths & Path from args - redundant and ambiguous
Renamed mispelled "Indention"
Changed args param from pointer to value
Updated and added additional tests for formatting params

* Update JSONSetMode

changed mode parameter back to string, added value checking for that
string

* Updated JSONMSet

Changed name of param struct to ...Args  for consistency
Updated arg list to use an array of structs not pointers as
all args are mandatory (we never want to pass a nil parameter)

* Updated tests for JSONMSet

* Added stubbed (panicking) implementations of JSON.RESP AND JSON.DEBUG

* Pre-pull request tidy up

Renamed xArgs() to xWithArgs to match other Redis modules

Modified params to xWithArgs functions to use a pointer for the
arguments struct to match other Redis modules.

Modified JSONMSet to JSONMSetArgs and added a version that takes
a vararray of args to match the semantics of the native redis call

Updated tests to match above changes.

Renamed some variables in the json tests for consistency

* Testing fixes

Fixed error in JSONSetWithArgs found during tests
Fixed tests for indentation

* fix JSONCmdable typo (#5)

* Remove deprecated command: JSONNumMultBy (#6)

* Lowercase newJSONCmd (#7)

---------

Co-authored-by: Nic Gibson <nic.gibson@redis.com>
Co-authored-by: Nic Gibson <newt+github@noslogan.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants