Bug #71432 | Key store files not closed when making SSL connection | ||
---|---|---|---|
Submitted: | 20 Jan 2014 17:22 | Modified: | 10 Mar 2014 20:00 |
Reporter: | David Huebel | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | Alexander Soklakov | CPU Architecture: | Any |
[20 Jan 2014 17:22]
David Huebel
[20 Jan 2014 17:24]
David Huebel
ExportControlled.java with changes to explicitly close streams
Attachment: ExportControlled.java (application/octet-stream, text), 11.29 KiB.
[20 Jan 2014 17:25]
David Huebel
Patched version of ExportControlled.java attached
[21 Jan 2014 7:05]
Alexander Soklakov
Hi David, Thank you, it's important. Verified by code review.
[10 Mar 2014 20:00]
Daniel So
Added the following entry to the Connector/J 5.1.30 changelog: "There were sporadic cases of the key store file being open hundreds of times and causing some "Too many files open" errors. This fix makes sure that in com.mysql.jdbc.ExportControlled and in MysqlIO.sendFileToServer(), the input stream for the key store file is explicitly closed after use."