Skip to content

Commit

Permalink
fix: Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Sep 14, 2024
1 parent e9fa055 commit 865a8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymisp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# Enable TCP keepalive by default on every requests
import socket
from urllib3.connection import HTTPConnection
HTTPConnection.default_socket_options = HTTPConnection.default_socket_options + [ # type: ignore
HTTPConnection.default_socket_options = HTTPConnection.default_socket_options + [
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), # enable keepalive
(socket.SOL_TCP, socket.TCP_KEEPIDLE, 30), # Start pinging after 30s of idle time
(socket.SOL_TCP, socket.TCP_KEEPINTVL, 10), # ping every 10s
Expand Down

0 comments on commit 865a8a5

Please sign in to comment.