I have weird problem with one of my applications (servers ), its suddenly starts to read socket and before it written back, the connection is closed this is what I see in my logs. Is there any tool in Linux centos that let me see what is happening in this time frame some tools to debug the network ?
Along with wireshark and tcpdump, you can also log everything through iptables. Depending on how your firewall is set up, a log rule would look something like "-A INPUT -j LOG"