I had set upload size limit of 10MB and tried adding a file of 41 MB however, instead of providing a response with suitable error code the jira server resets the connection.
For more details please take a look at attached screenshot.
However when the attachment size is less than 10MB it responds correctly.