Skip to content

Receiving binary message crashes due to boost::bad_lexical_cast #82

Closed
@kzoink

Description

@kzoink

Try sending a binary message as follows from a Socket.IO server to a client built with socket.io-client-cpp:

//var testBuffer = new ArrayBuffer(10);
var testBuffer = new Buffer("test buffer");

io.on('connection', function(socket){
console.log('a user connected');
io.emit('binary', testBuffer);
});

socket.io-client-cpp will crash with a message similar to the following:

First-chance exception at 0x00007FF9EB828B9C in sioclient_test.exe: Microsoft C++ exception: boost::exception_detail::clone_implboost::exception_detail::error_info_injector<boost::bad_lexical_cast > at memory location 0x000000661EB3E708.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions