Hi Are there any standard reasons why I might get a ebadf error when writing to a previously opened socket by the function gen_tcp:send()/2 ? Thanks, Leon