Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Fixed Socket::Sendv return value bindings. #546

Closed
wants to merge 1 commit into from

Conversation

danme
Copy link

@danme danme commented Jul 26, 2016

Fixed issue: The call to the socket.sendv(...) always returned false in my environment, causing a message to be send again and again (up to 32000 times).
It was incorrectly marked as not send, but my server received the first and all following messages and did reply.

Node 6.3.0 on Ubuntu 14.04 32-bit did end up with an undefined behaviour using bool type as a return value.
Returning 0 (False) and 1 (True) does not have these side effects.
Compiled with clang 3.4.

Node 6.3.0 on Ubuntu 14.04 32-bit did end up with an undefined behaviour (using bool).
Returning 0 (False) and 1 (True) does not have these side effects.
@ronkorving
Copy link
Collaborator

I'm lost as to why this would happen in the first place. I would like to understand the why of this. @kkoopa any ideas?

@kkoopa
Copy link
Contributor

kkoopa commented Jul 27, 2016

Only way that would happen is if there is an ABI mismatch. Nothing to see here.

@ronkorving
Copy link
Collaborator

@danme I'm gonna have to go with @kkoopa's judgment here. I don't think this fixes an actual bug.

@ronkorving ronkorving closed this Jul 28, 2016
@danme
Copy link
Author

danme commented Jul 28, 2016

@ronkorving Sounds reasonable.
I may investigate the ABI missmatch.
I'm compiling zmq and zeromq.node by myself, but I use prebuilt node binaries for ubuntu.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants