Relative Content

Tag Archive for cerlangelixirerlang-ports

Broken pipe error with Ports between Elixir and C

I am attempting to write a program in Elixir that connects to a C program via Port and erl_interface. I got the C code up and running and managed to send data through the port as well as decode and encode, like the tutorials. However, I wish to send quite large data, namely the contents of images or files, through the port. The port exits with {:EXIT, #Port<x.x>, :epipe} which is the POSIX code for broken pipe when I try these large files. Is there some upper limit on the size of the data sent through the port, or is there some other reason for why the pipe breaks?