Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a http proxy running on Linux (RHEL 5.5), intermittently it doesn't reply [SYN,ACK] packet after received a [SYN] packet from the client. This issue can be recovered by restarting the proxy. I ran the gstack against the proxy process, however the stack of each thread doesn't indicate any problems(hanging). And there were less than 100 connections staying at the "SYN_RECV" state during this issue.

Any ideas? For such issue, where should i start to debug?

Any suggestions would be greatly appreciated.

share|improve this question
add comment

2 Answers

Lack of SYN,ACK usually indicates that the server software doesn't accept the connection. This might be due to a number of reasons, most likely exhaustion of resources of some kind or another. You could try to strace the server process to see whether it is in the accept syscall, or equivalently doing some select or poll with the server socket among the file descriptors to select from.

share|improve this answer
add comment

Looks like a firewall issue. If a TCP connection on receiving the first SYN + ACK response, it's most likely your packet wasn't sent to the proxy server.

Check on both server side and client side.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.