Sponsored Content
Operating Systems Linux Red Hat How to solve TCP connection timeout (not in ssh)? Post 303028376 by Neo on Sunday 6th of January 2019 05:37:46 AM
Old 01-06-2019
Linux has built-in support for TCP keepalive. You need procfs and sysctl support to be able to configure the kernel parameters at runtime.

The procedures involving TCP keepalive use three user-driven variables:

tcp_keepalive_time

the interval between the last data packet sent (simple ACKs are not considered data) and the first keepalive probe; after the connection is marked to need keepalive, this counter is not used any further

tcp_keepalive_intvl

the interval between subsequential keepalive probes, regardless of what the connection has exchanged in the meantime

tcp_keepalive_probes

the number of unacknowledged probes to send before considering the connection dead and notifying the application layer
These 2 Users Gave Thanks to Neo For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

about TCP connection

Hi Experts, need help about release or refresh TCP Connection: i have the sample like below : application log connection: 0500 ( 192.168.0.1:36053) 00919 2007/05/10 23:30:25 112 13 2007/05/10 23:30:25 1969/12/31 17:00:00 0500 ( 192.168.0.1:36054) 00920 2007/05/10 23:30:26 000 00... (3 Replies)
Discussion started by: bucci
3 Replies

2. IP Networking

false tcp connection

Why this happens? How to solve this? $netstat -na |grep 9325 tcp 0 0 127.0.0.1:9325 127.0.0.1:9325 ESTABLISHED When a client socket repeatedly tries to connect to an inactive(no server socket is listening on this port) local port,connect succeeds. ... (1 Reply)
Discussion started by: johnbach
1 Replies

3. UNIX for Dummies Questions & Answers

Decreasing SSL connection timeout

hi people, i need help about timeout duration of ssl while connecting to another server in network. this is what i try bash-3.00# time ssh root@10.10.10.10 "date" ssh: connect to host 10.10.10.10 port 22: Connection timed out real 3m10.215s user 0m0.007s sys 0m0.011sthere is no... (2 Replies)
Discussion started by: sdkbjk
2 Replies

4. UNIX and Linux Applications

sendmail connection timeout

Hi I am trying to configure sendmail for logwatch and another script i have . However when i try to send a test mail i am getting the following error. Logwatch is not sending any emails out nor is denyhost. I just want it to send emails out . Can anyone help me ? i have looked through... (1 Reply)
Discussion started by: um08
1 Replies

5. UNIX for Dummies Questions & Answers

SCP Connection Timeout

Hello UNIX users, Thanks for helping me in my earlier post. Now, I am facing a timeout issue when ever I am transferring a zipped file from my server to client's server. If the zipped file size is below 3 MB, it goes fine. Anything above that fails. Below is the part of screenshot from... (1 Reply)
Discussion started by: st3636
1 Replies

6. Solaris

weblogic connection timeout error

i am facing an issue that the server give a connection timeout after 60 sec for any request more than that number . i tried to increase the TCP INTERVAL TIMEOUT from the default 60000 ms to more higher number. the server seems to work fine and didn't give me the massage of the timeout but the... (0 Replies)
Discussion started by: core99
0 Replies

7. Shell Programming and Scripting

What is this error log = hda: irq timeout: error=0x00 and how to solve?

what is this error log = hda: irq timeout: error=0x00 and how to solve? every day upon checking the logs i see this error. hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hw_client: segfault at 0000000000000046 rip... (3 Replies)
Discussion started by: avtalan
3 Replies

8. UNIX for Advanced & Expert Users

How keep running a program n an another computer via a connection ssh when the connection is closed?

Hi everybody, I am running a program on a supercomputer via my personal computer through a ssh connection. My program take more than a day to run, so when I left work with my PC I stop the connection with the supercomputer and the program stop. I am wondering if someone know how I can manage... (2 Replies)
Discussion started by: TomTomGre
2 Replies

9. Shell Programming and Scripting

Timeout to abolish ssh connection command it takes too long

Hi, I am running a ssh connection test in a script, how can I add a timeout to abolish the process if it takes too long? ssh -i ~/.ssh/ssl_key useraccount@computer1 Thank you. - j (1 Reply)
Discussion started by: hce
1 Replies

10. Shell Programming and Scripting

How to set timeout for dev/tcp while checking hostname and port?

I have a command to check the status of hostname and port number, echo > /dev/tcp/hostname/80 echo $? 0 success case echo > /dev/tcp/hostname/809999 I got the output ------------------- connection timed out It took almost 4 minutes to time out,,, how can I set it to 10 seconds? my... (2 Replies)
Discussion started by: sam@sam
2 Replies
sys_attrs_inet(5)						File Formats Manual						 sys_attrs_inet(5)

NAME
sys_attrs_inet - inet subsystem attributes DESCRIPTION
This reference page lists and describes attributes for the Internet (inet) kernel subsystem. Refer to the sys_attrs(5) reference page for an introduction to the topic of kernel subsystem attributes. The number of hash buckets in the kernel interface alias table (in_ifaddr). The value of the inifaddr_hsize attribute is always rounded down to the nearest power of 2. The maximum value is 512. Default value: 32 (hash buckets) Minimum value: 16 Maximum value: 512 The default Internet Protocol (IP) time-to-live value. Default value: DEFTTL, or 64 (router hops) Minimum value: 0 Maximum value: 255 A value that enables (1) or disables (0) a check to determine whether an IP datagram whose destination address is a directed broad- cast address has been received on the interface corresponding to that broadcast address. Default value: 0 (disabled) A value that enables (1) or disables (0) a system's ability to forward IP packets that are not addressed to the system. This func- tionality is usually enabled by using the /usr/sbin/iprsetup command. Default value: 0 (disabled) For systems functioning as routers, both ipforwarding and ipgateway attributes must be 1. Maximum time an IP fragment can spend waiting to be reassembled. Default value: IPFRAGTTL (60, in units of .5 seconds, or 30 seconds) Minimum value: 1 Maximum value: INT_MAX, or 2 billion A value that enables (1) or disables (0) a system's ability to forward IP packets that are not addressed to the system. This func- tionality is usually enabled by using the /usr/sbin/iprsetup command. Default value: 0 (disabled) For systems functioning as routers, both ipforwarding and ipgateway attributes must be 1. The number of times a system can simultaneously make outgoing connections to other systems. The number of outgoing ports is the value of the ipport_userreserved attribute minus the value of the ipport_userreserved_min attribute. The default value of the attribute is 5000; therefore, the default number of outgoing ports is 3976. Default value: 5000 Minimum value: 1 Maximum value: 65535 The lower limit of range of port numbers available for use by a TCP or UDP application. The number of outgoing ports is the value of the ipport_userreserved attribute minus the value of the ipport_userreserved_min attribute. The default value of the attribute is 5000; therefore, the default number of outgoing ports is 3976. Default value: 1024 Minimum value: 1 Maximum value: 65535 Maximum length of the IP input queue (ipintrq) before input packets are dropped. Default value: 1024 (bytes) Minimum value: 1024 Maximum value: 65535 Maximum number of IP input queues. Default value: 1 (queues) Minimum value: 1 Maximum value: 64 A value that enables (1) or disables (0) the sending of ICMP redirect messages. Default value: 1 (enabled) Enables (1) or disables (0) source routing. Default value: 1 (enabled) Time to wait after a decrease in a PMTU value before attempting to determine if the PMTU value has increased. Default value: PMTU_DECREASE_INTVL, or 1200 (in units of .5 seconds) Minimum value: 1 Maximum value: UINT_MAX, or 4 billion A value that enables (1) or disables (0) discovery of the path maximum transfer unit (PMTU). Default value: 1 (enabled) Time to wait after an increase in a PMTU value before attempting to determine if the PMTU has increased. Default value: PMTU_INCREASE_INTVL, or 240 (in units of .5 seconds) Minimum value: 1 Maximum value: UINT_MAX, or 4 billion The timer processing interval for routes participating in the PMTU discovery process. Default value: PMTU_RT_CHECK_INTVL, or 20 (in units of .5 seconds) Minimum value: 1 Maximum value: UINT_MAX, or 4 billion A value that enables (1) or disables (0), consideration of all IP addresses in the same network as being local. When this value is 1, all IP addresses that are in different subnets but in the same network are considered local. When this value is 0, only the IP addresses that match a directly connected subnet are considered local. Default value: 1 (enabled) The number of Transmission Control Protocol (TCP) hash tables. Default value: 1 (table) Minimum value: 1 Maximum value: 64 The number of buckets in the TCP inpcb hash table. Default value: 512 (buckets) Minimum value: 0 Maximum value: INT_MAX, or 2 billion Enables (1) or disables (0) optimization of the listen path for server sockets. Default value: 1 (enabled) A value that enables (1) or disables (0) 4.2 BSD-compatible behavior for the initial send sequence of numbers and keepalives. Default value: 1 (enabled) The number of initial segments to send during congestion window negotiation. Default value: 2 (segments) Minimum value: 1 Maximum value: UINT_MAX, or 4 billion A value that enables (0) or disables (1) window scaling. Default value: 0 (enabled) Note The values for disabling and enabling are the reverse of what they are for most other attributes. A value that enables (1) or disables (0) TCP keepalive for all sockets. TCP keepalive supports the periodic transmission of messages on a connected socket in order to keep connections active. If keepalive is enabled, sockets that do not exit cleanly are cleaned up when the keepalive interval expires. If keepalive is not enabled, those sockets will continue to exist until you reboot the sys- tem. Default value: 0 (disabled) Applications enable keepalive for sockets by setting the setsockopt() function's SO_KEEPALIVE option. Use the tcp_keepalive_default attribute to override programs that do not set keepalive on their own, particularly if you have no access to the sources for those programs. Maximum number of keepalive probes that can be sent before a connection is dropped. Default value: TCPTV_KEEPCNT, or 8 (probes) Minimum value: 1 Maximum value: 32767 Idle time before the first keepalive probe. Default value: TCPTV_KEEP_IDLE, or 14400 (in units of .5 seconds) Minimum value: 1 Maximum value: 32767 Initial connect timeout. Default value: TCPTV_KEEP_INIT, or 150 (in units of .5 seconds) Minimum value: 1 Maximum value: 32767 Time between keepalive probes. Default value: TCPTV_KEEP_INTVL, or 150 (in units of .5 seconds) Minimum value: 1 Maximum value: 32767 The maximum lifetime of a TCP segment. Default value: 60 (in units of .5 seconds) Minimum value: 1 Maximum value: 2 billion Default maximum segment size. Default value: TCP_MSS, or 536 (bytes) Minimum value: 1 Maximum value: 2 billion Default receive buffer size for TCP sockets. Default value: TCP_RECVSPACE, or 61440 (bytes) Minimum value: 1 Maximum value: 4 billion (cannot be larger than sb_max) Minimum amount of time between TCP retransmissions. Default value: 2 (in units of .5 seconds), or 1 second Minimum value: 1 Maximum value: 2 billion The maximum number of TCP retransmitted packets to send before giving up. Default value: 128 (packets) Minimum value: 1 Maximum value: INT_MAX, or 2 billion Initial assumed round-trip time, in seconds. Default value: 3 (seconds) Minimum value: 0 Maximum value: INT_MAX, or 2 billion Default send buffer size, in bytes, for TCP sockets. Default value: TCP_SENDSPACE, or 61440 (bytes) Minimum value: 1 Maximum value: UINT_MAX, or 4 billion (cannot be larger than sb_max) IP time-to-live, in router hops, for TCP packets. Default value: TCP_TTL, or 60 (router hops) Minimum value: 0 Maximum value: 255 A value that enables (1) or disables (0) 4.2 BSD-compatible behavior for an urgent pointer. The urgent pointer is a pointer to the first octet of data past the urgent section. When disabled, the urgent pointer is a pointer to the last octet of data in the urgent section. Default value: 1 (enabled) A value that enables (0) or disables (1) delayed acknowledgments. Default value: 0 (enabled) Note The values for disabling and enabling are the reverse of what they are for most other attributes. Number of duplicate acknowledgments (ACKs) before retransmission. Default value: TCPREXMTTHRESH, or 3 (duplicate acknowledgements) Minimum value: 1 Maximum value: INT_MAX, or 2 billion A value that enables (1) or disables (0) the movement of TCP inpcbs in the TIME_WAIT state to the end of the inpcb list. Default value: 0 (disabled) Default receive buffer size, in bytes, for UDP sockets. Default value: UDP_RECVSPACE, or 42240 (bytes) Minimum value: 1 Maximum value: UINT_MAX, or 4 billion (cannot be larger than sb_max) Default send buffer size, in bytes, for UDP sockets. Default value: UDP_SENDSPACE, or 9216 (bytes) Minimum value: 1 Maximum value: UINT_MAX, or 4 billion (cannot be larger than sb_max) IP time-to-live, in router hops, for UDP packets. Default value: UDP_TTL, or 30 (router hops) Minimum value: 0 Maximum value: 255 A value that enables (1) or disables (0) checksumming in the Internet user datagram protocol (UDP). Default value: 1 (enabled) SEE ALSO
sys_attrs(5) Tuning Tru64 UNIX for Internet Servers at the following location: http://www.digital.com/internet/document/ias/tuning.html. System Configuration and Tuning sys_attrs_inet(5)
All times are GMT -4. The time now is 12:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy