Commit 8f791d7
committed
ssl: fix SSLSocket#sysread leaking locktmp String on timeout
Commit 3bbf517 made blocking methods on SSLSocket follow the
IO#timeout= value. The commit changed io_wait_readable() to potentially
raise an exception without unlocking the String.
The String is currently locked for the entire duration of a #sysread
method call. This does not seem to be necessary, as SSL_read() does not
require that the same buffer is specified when retrying. Locking the
String during each SSL_read() call should be sufficient.1 parent f4e7c4b commit 8f791d7
2 files changed
+16
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1959 | 1959 | | |
1960 | 1960 | | |
1961 | 1961 | | |
1962 | | - | |
1963 | 1962 | | |
| 1963 | + | |
1964 | 1964 | | |
| 1965 | + | |
1965 | 1966 | | |
1966 | 1967 | | |
1967 | 1968 | | |
| |||
1972 | 1973 | | |
1973 | 1974 | | |
1974 | 1975 | | |
1975 | | - | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | | - | |
1980 | 1979 | | |
1981 | 1980 | | |
1982 | 1981 | | |
1983 | 1982 | | |
1984 | | - | |
1985 | 1983 | | |
1986 | 1984 | | |
1987 | 1985 | | |
1988 | 1986 | | |
1989 | | - | |
| 1987 | + | |
1990 | 1988 | | |
1991 | 1989 | | |
1992 | | - | |
1993 | 1990 | | |
1994 | 1991 | | |
1995 | 1992 | | |
1996 | 1993 | | |
1997 | | - | |
| 1994 | + | |
1998 | 1995 | | |
1999 | 1996 | | |
2000 | | - | |
2001 | 1997 | | |
2002 | 1998 | | |
2003 | 1999 | | |
| |||
2014 | 2010 | | |
2015 | 2011 | | |
2016 | 2012 | | |
2017 | | - | |
2018 | 2013 | | |
2019 | 2014 | | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
2020 | 2020 | | |
2021 | 2021 | | |
2022 | 2022 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| |||
0 commit comments