Forum Moderators: phranque

Message Too Old, No Replies

Apache web server not working when listening on multiple port

Apache web server

         

jaango

7:32 pm on Oct 7, 2008 (gmt 0)

10+ Year Member



Hi,
Apache web server not responding when bound to multiple ports i.e having more that one "Listen" entries in config file. I am using Apache web server version 2.2.8 and cross compiled for POWERPC using Windriver tool chain and Apache is running on PowerPC board on Linux kernel 2.6.21. The problem is not present when compiler build for Intel platform.

Everything is fine when I bound to a single port but when bond to multiple ports server not responding to any of the port. The problem is that Apache doesn't send proper response for client request, refer following tcpdup in error scenario:

07:11:40.231961 IP 10.1.114.100.58499 > 10.1.114.24.www: S 2435128872:2435128872(0) win 5840 <mss 1460,sackOK,timestamp 951803594 0,nop,wscale 6>
07:11:40.237493 IP 10.1.114.24.www > 10.1.114.100.58499: S 3891145073:3891145073(0) ack 2435128873 win 5792 <mss 1460,sackOK,timestamp 409974 951803594,nop,wscale 6>
07:11:40.232213 IP 10.1.114.100.58499 > 10.1.114.24.www: . ack 1 win 92 <nop,nop,timestamp 951803594 409974>
07:11:40.232432 IP 10.1.114.100.58499 > 10.1.114.24.www: P 1:562(561) ack 1 win 92 <nop,nop,timestamp 951803595 409974>
07:11:40.232505 IP 10.1.114.24.www > 10.1.114.100.58499: . ack 562 win 109 <nop,nop,timestamp 409975 951803595>

Following is the tcpdump for successful scenario:

07:09:42.601321 IP 10.1.114.100.58494 > 10.1.114.24.www: S 601269199:601269199(0) win 5840 <mss 1460,sackOK,timestamp 951686254 0,nop,wscale 6>
07:09:42.605922 IP 10.1.114.24.www > 10.1.114.100.58494: S 3766656281:3766656281(0) ack 601269200 win 5792 <mss 1460,sackOK,timestamp 380567 951686254,nop,wscale 6>
07:09:42.601599 IP 10.1.114.100.58494 > 10.1.114.24.www: . ack 1 win 92 <nop,nop,timestamp 951686255 380567>
07:09:42.601856 IP 10.1.114.100.58494 > 10.1.114.24.www: P 1:629(628) ack 1 win 92 <nop,nop,timestamp 951686255 380567>
07:09:42.601924 IP 10.1.114.24.www > 10.1.114.100.58494: . ack 629 win 111 <nop,nop,timestamp 380567 951686255>
07:09:42.603537 IP 10.1.114.24.www > 10.1.114.100.58494: . 1:1449(1448) ack 629 win 111 <nop,nop,timestamp 380567 951686255>
07:09:42.603558 IP 10.1.114.24.www > 10.1.114.100.58494: . 1449:2897(1448) ack 629 win 111 <nop,nop,timestamp 380567 951686255>

Interestingly web server works fine if I enable iodump in Apache.

This problem is eating my time, if anybody face this issue please replay.
Thanks in Advance.
Jaango