title: Internal Exception: java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
body: <p>I am getting    "Internal Exception: java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error" while persisting large files as LONGBLOB in MariaDB. We are using Spring with EclipseLink on MariaDB 5.5. 
  All files of size less than roughly 300KB are persisted but more than that results in this error.</p>
  
  <p>We are using MariaDB for the first time in the organization and I have no idea which DB variables should  be set to adequate values so that transactions which persist large files and longer than normal will not  result in this error.</p>
  
  <p>Any quick help on this is much appreciated. I am looking for a solution on my side and  if I find a solution will update this post. Thanks in advance. </p>