Hello,
Would somebody kind enough to tell me how to
implement multiclient support in httpServer. I used Thread, but the server just
accept only one request and abort. I could not know why?
The following is what the system gave
out:
New connection from client1
GET /s1/page2.html HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us,fi;q=0.5 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) Host: alpha.hut.fi:8088 Connection: Keep-Alive SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Error 0 occurred. si_code [1]: SEGV_ACCERR [addr: 0x0] sc_pc: 0x3ffbff5c6f0, r26: 0x3ffbff5c6f0 Full thread dump: "SIGQUIT handler" (TID:0x310590, sys_thread_t:0x400a7180, state:R, pthread_t: t@1074895232, sp:0x0 pc:0x0 threadID:0x140119980, stack_base:0x140117b10 stack_size:0x22000) prio=2 "Finalizer thread" (TID:0x310110, sys_thread_t:0x400a6f00, state:CW, pthread_t: t@1074739584, sp:0x1400f18d8 pc:0x3ffbff59db0 threadID:0x1400f3980, stack_base:0x1400f1b10 stack_size:0x22000) prio=2 "main" (TID:0x310160, sys_thread_t:0x400a6c80, state:R, pthread_t: t@-1072154992, sp:0x11fffea10 pc:0x3ffbff5c7c0 threadID:0x3ffc0183690, stack_base:0x11ffff550 stack_size:0x200000) prio=5 java.net.PlainSocketImpl.accept(Compiled Code) java.net.ServerSocket.implAccept(Compiled Code) java.net.ServerSocket.accept(Compiled Code) hServer.main(Compiled Code) Monitor Cache Dump: java.net.PlainSocketImpl@317D40/368520: owner "main" (0x1400a6c80, 1 entry) Registered Monitor Dump: Thread queue lock: <unowned> Name and type hash table lock: <unowned> String intern lock: <unowned> JNI pinning lock: <unowned> JNI global reference lock: <unowned> BinClass lock: <unowned> Class loading lock: <unowned> Java stack lock: <unowned> Code rewrite lock: <unowned> Heap lock: <unowned> Has finalization queue lock: <unowned> Finalize me queue lock: <unowned> Waiting to be notified: "Finalizer thread" (0x1400a6f00) Monitor registry: <unowned> Abort |