search for: listenerloop

Displaying 3 results from an estimated 3 matches for "listenerloop".

2020 May 11
2
Segfault on read.socket with long message
...hanism. The messages are rather long object stored as JSON. R is crashing with a segmentation fault when I try to read my test message (which is 5305 bytes long). I first send the length in bytes and then I send the actual message. Here is my R code: library(jsonlite) library(futile.logger) listenerloop <- function (port) { flog.trace("Opening Socket on port %d",port) sock <- make.socket("localhost",port,server=TRUE) on.exit({ close.socket(sock) flog.trace("Closing Socket on port %d",port) }) repeat { ## Input a hunk of stuff up t...
2020 May 12
1
Segfault on read.socket with long message
...ashing with a segmentation fault when I try to read my test >> message (which is 5305 bytes long).? I first send the length in bytes >> and then I send the actual message. >> >> Here is my R code: >> >> library(jsonlite) >> library(futile.logger) >> listenerloop <- function (port) { >> ? flog.trace("Opening Socket on port %d",port) >> ? sock <- make.socket("localhost",port,server=TRUE) >> ? on.exit({ >> ??? close.socket(sock) >> ??? flog.trace("Closing Socket on port %d",port) >> ??? }...
2020 May 12
0
Segfault on read.socket with long message
...> as JSON. > > R is crashing with a segmentation fault when I try to read my test > message (which is 5305 bytes long).? I first send the length in bytes > and then I send the actual message. > > Here is my R code: > > library(jsonlite) > library(futile.logger) > listenerloop <- function (port) { > ? flog.trace("Opening Socket on port %d",port) > ? sock <- make.socket("localhost",port,server=TRUE) > ? on.exit({ > ??? close.socket(sock) > ??? flog.trace("Closing Socket on port %d",port) > ??? }) > ? repeat { > ?...