This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
*newbie* /dev/root full after 24hrs
#32
Here's what I think is happening.

kplex has a not-quite-conventional approach to its data flow in that it doesn't use select(), poll() or similar but uses a separate thread for every input and every output.

Read interfaces sit in a blocking read.  If the other end of a tcp socket closes the connection the read will return an error, kplex knows the connection is closed and will terminate the interface.  If the interface is bi-directional it will also terminate its "pair" in the write thread.

But this is an output-only interface. What seems to be happening here is that because no data is being sent to kplex, it's not writing to any of its open sockets.  Because it doesn't write to anything, it doesn't get an error to tell it the socket it is writing to is closed and so doesn't know to terminate the thread and close the  socket.

if I'm right, removing "direction=out" would make the socket bi-drectional and cause the read thread to terminate the connection when the client shut down.

Undesirable behaviour for sure but this isn't so much a bug as a condition which wasn't anticipated (no outputs to write and repeated reconnections)
Reply


Messages In This Thread
*newbie* /dev/root full after 24hrs - by Yannick - 2018-06-06, 06:27 PM
*newbie* /dev/root full after 24hrs - by tkurki - 2018-08-05, 02:41 PM
RE: *newbie* /dev/root full after 24hrs - by stripydog - 2018-08-06, 11:11 PM
*newbie* /dev/root full after 24hrs - by PaddyB - 2018-08-06, 11:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)