Hi Jitesh, I have one Custom Linux board on which I want to run apache web server (httpd) to test HTML and other web based pages. I have configured, cross compiled and installed httpd (2.2.24, 2.4.1, 2.4.4 and 2.4.9 packages) on my Linux PC (Ubuntu 12.04 LTS) as well as on my own custom Linux board. Then I have added support of SSL Module (mod_ssl) to test HTTP as well as HTTPS request. Both HTTP and HTTPS request works fine without any issue on my Linux PC (Ubuntu 12.04 LTS). But when I tried to execute same HTTP request on my Linux Board using httpd (2.4.4 and 2.4.9 with SSL Module Enabled) at that time browser page goes into loading state and can not be came out from that situation. Also I have seen that HTTPS request works fine at that time. I have also did some debugging task through wire-shark tool and found that connection is established successfully after sending request through HTTP but can not get response of that request. I have also found that response of that HTTP request received on wire-shark after closing that HTTP requested page from browser. Also, I can run HTTP and HTTPS requests successfully using httpd (2.2.24 and 2.2.27 with SSL Module enabled) on my Linux Board as well but failed to execute same request using httpd (2.4.X with SSL Module enabled) package. I have also changed some configurations by creating different virtual host for HTTP (Port 80) and HTTPS (Port 443) but still failed to execute that HTTP request. I have also tried to listen on different ports like (Listen 80 and Listen 8000) without SSL module (using httpd 2.4.4. and 2.4.9 ) at that time HTTP request goes into loading state. It works fine without any issue on my custom Linux Board with single listen port but failed to execute on multiple listen ports. I have also added following flags in configuration script of httpd (2.4.4 and 2.4.9) and started my httpd process with "-DNO_DETACH -DONE_PROCESS" options and debug that process using strace on my Linux Board with single and multiple listen port requests.to solve that issue but still failed to execute HTTP request. ac_cv_file__dev_zero=yes ac_cv_func_setpgrp_void=yes apr_cv_process_shared_works=yes apr_cv_mutex_robust_shared=no apr_cv_tcp_nodelay_with_cork=yes apr_cv_mutex_recursive=yes ap_cv_void_ptr_lt_long=no ac_cv_sizeof_struct_iovec=8 ac_cv_struct_rlimit=yes \ ac_cv_o_nonblock_inherited=no I have also debug httpd process using starce and found that read system call goes into blocking state which never returns. $ ./strace -p 1811 Process 1811 attached restart_syscall(<... resuming interrupted call ...>) = 0 poll([{fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 2, 10000) = 0 (Timeout) poll([{fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 2, 10000) = 0 (Timeout) poll([{fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 2, 10000) = 1 ([{fd=4, revents=POLLIN}]) accept(4, {sa_family=AF_INET6, sin6_port=htons(40827), inet_pton(AF_INET6, "::ffff:192.168.0.45", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 11 fcntl64(11, F_GETFD) = 0 fcntl64(11, F_SETFD, FD_CLOEXEC) = 0 semop(950296, {{0, 1, SEM_UNDO}}, 1) = 0 gettimeofday({1405747420, 372062}, NULL) = 0 getsockname(11, {sa_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, "::ffff:192.168.0.183", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0 gettimeofday({1405747420, 374162}, NULL) = 0 gettimeofday({1405747420, 374976}, NULL) = 0 read(11, "GET / HTTP/1.1\r\nHost: 192.168.0."..., 8000) = 289 gettimeofday({1405747420, 377850}, NULL) = 0 gettimeofday({1405747420, 380080}, NULL) = 0 gettimeofday({1405747420, 382529}, NULL) = 0 gettimeofday({1405747420, 384638}, NULL) = 0 gettimeofday({1405747420, 386798}, NULL) = 0 gettimeofday({1405747420, 388903}, NULL) = 0 gettimeofday({1405747420, 390971}, NULL) = 0 gettimeofday({1405747420, 393006}, NULL) = 0 gettimeofday({1405747420, 395390}, NULL) = 0 gettimeofday({1405747420, 397474}, NULL) = 0 stat64("/usr/local/apache2/htdocs/", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 stat64("/usr/local/apache2/htdocs/index.html", {st_mode=S_IFREG|0777, st_size=45, ...}) = 0 open("/usr/local/apache2/htdocs/index.html", O_RDONLY|O_CLOEXEC) = 12 open("/etc/localtime", O_RDONLY) = 13 fstat64(13, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0 fstat64(13, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a01d000 read(13, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 127 _llseek(13, -11, [116], SEEK_CUR) = 0 read(13, "\n<GMT-8>-8\n", 4096) = 11 close(13) = 0 munmap(0x2a01d000, 4096) = 0 gettimeofday({1405747420, 441452}, NULL) = 0 read(11, Please let me know if you have any idea about this issue as you have faced before or any work around for that. -- Regards, Ritesh Prajapati, System Level Solutions (India) Pvt.Ltd. |