File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/com/mongodb/internal/connection
test/functional/com/mongodb/internal/connection Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 37
37
final class SocketStreamHelper {
38
38
// Keep alive options and their values for Java 11+
39
39
private static final String TCP_KEEPIDLE = "TCP_KEEPIDLE" ;
40
- private static final int TCP_KEEPIDLE_DURATION = 300 ;
40
+ private static final int TCP_KEEPIDLE_DURATION = 120 ;
41
41
private static final String TCP_KEEPCOUNT = "TCP_KEEPCOUNT" ;
42
42
private static final int TCP_KEEPCOUNT_LIMIT = 9 ;
43
43
private static final String TCP_KEEPINTERVAL = "TCP_KEEPINTERVAL" ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class SocketStreamHelperSpecification extends Specification {
55
55
if (Arrays.stream(ExtendedSocketOptions.getDeclaredFields()).anyMatch{ f -> f.getName().equals(' TCP_KEEPCOUNT ' ) }) {
56
56
Method getOptionMethod = Socket.getMethod(' getOption' , SocketOption);
57
57
getOptionMethod.invoke(socket, ExtendedSocketOptions.getDeclaredField(' TCP_KEEPCOUNT ' ).get(null)) == 9
58
- getOptionMethod.invoke(socket, ExtendedSocketOptions.getDeclaredField(' TCP_KEEPIDLE ' ).get(null)) == 300
58
+ getOptionMethod.invoke(socket, ExtendedSocketOptions.getDeclaredField(' TCP_KEEPIDLE ' ).get(null)) == 120
59
59
getOptionMethod.invoke(socket, ExtendedSocketOptions.getDeclaredField(' TCP_KEEPINTERVAL ' ).get(null)) == 10
60
60
}
61
61
You can’t perform that action at this time.
0 commit comments