Project

General

Profile

Actions

Bug #311

closed

SSL Errors

Added by Anonymous over 16 years ago. Updated almost 15 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

I receive the following messages in the error log when making an SSL request from Safari to Lighttpd 1.4.5 running on FreeBSD 5.4 STABLE.


2005-10-04 23:55:03: (log.c.75) server started 
2005-10-04 23:55:10: (connections.c.266) SSL: 1 error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure 
2005-10-04 23:55:11: (network_openssl.c.104) SSL (error): 5 0 22 Unknown error:  0 
2005-10-04 23:55:11: (connections.c.515) connection closed: write failed on fd 7
2005-10-04 23:55:11: (network_openssl.c.104) SSL (error): 5 0 22 Unknown error: 0 
2005-10-04 23:55:11: (connections.c.515) connection closed: write failed on fd 7
2005-10-04 23:55:11: (network_openssl.c.104) SSL (error): 5 0 22 Unknown error: 0 
2005-10-04 23:55:11: (connections.c.515) connection closed: write failed on fd 7
2005-10-04 23:55:16: (server.c.1027) [note] gracefull shutdown started 
2005-10-04 23:55:16: (log.c.135) server stopped

truss generated the following. (truss -o lighttpd.trace lighttpd -D -f ./lighttpd.conf)
It looks like there are a lot of files not found, also some crypto files.
Lighttpd was compiled out of /usr/ports with OpenSSL support.


mmap(0x0,3920,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 671662080 (0x2808c000)
munmap(0x2808c000,0xf50)             = 0 (0x0)
__sysctl(0xbfbfea28,0x2,0x28088c58,0xbfbfea24,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 671662080 (0x2808c000)
issetugid()                     = 0 (0x0)
open("/etc/libmap.conf",0x0,0666)         ERR#2 'No such file or directory'
access("/usr/lib/libpcre.so.0",0)         ERR#2 'No such file or directory'
access("/usr/local/lib/libpcre.so.0",0)         = 0 (0x0)
open("/usr/local/lib/libpcre.so.0",0x0,00)     = 4 (0x4)
fstat(4,0xbfbfeb20)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,155648,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 671694848 (0x28094000)
mprotect(0x280a2000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x280a2000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x280a3000,94208,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0xf000) = 671756288 (0x280a3000)
close(4)                     = 0 (0x0)
access("/usr/lib/libssl.so.3",0)         = 0 (0x0)
open("/usr/lib/libssl.so.3",0x0,027757765440)     = 4 (0x4)
fstat(4,0xbfbfeb20)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,188416,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 671850496 (0x280ba000)
mprotect(0x280e4000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x280e4000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x280e5000,12288,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x2b000) = 672026624 (0x280e5000)
close(4)                     = 0 (0x0)
access("/usr/lib/libcrypto.so.3",0)         ERR#2 'No such file or directory'
access("/usr/local/lib/libcrypto.so.3",0)     ERR#2 'No such file or directory'
open("/var/run/ld-elf.so.hints",0x0,05002072730) = 4 (0x4)
read(0x4,0xbfbfead0,0x80)             = 128 (0x80)
lseek(4,0x80,SEEK_SET)                 = 128 (0x80)
read(0x4,0x28091000,0x2d)             = 45 (0x2d)
close(4)                     = 0 (0x0)
access("/lib/libcrypto.so.3",0)             = 0 (0x0)
open("/lib/libcrypto.so.3",0x0,027757765440)     = 4 (0x4)
fstat(4,0xbfbfeb20)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,1011712,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 672038912 (0x280e8000)
mprotect(0x281c8000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x281c8000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x281c9000,81920,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0xe0000) = 672960512 (0x281c9000)
mmap(0x281dd000,8192,(0x3)PROT_READ|PROT_WRITE,(0x1012)MAP_ANON|MAP_FIXED|MAP_PRIVATE,-1,0x0) = 673042432 (0x281dd000)
close(4)                     = 0 (0x0)
access("/usr/lib/libc.so.5",0)             ERR#2 'No such file or directory'
access("/usr/local/lib/libc.so.5",0)         ERR#2 'No such file or directory'
access("/lib/libc.so.5",0)             = 0 (0x0)
open("/lib/libc.so.5",0x0,027757765440)         = 4 (0x4)
fstat(4,0xbfbfeb20)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,892928,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 673050624 (0x281df000)
mprotect(0x282a0000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282a0000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282a1000,24576,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0xc1000) = 673845248 (0x282a1000)
mmap(0x282a7000,73728,(0x3)PROT_READ|PROT_WRITE,(0x1012)MAP_ANON|MAP_FIXED|MAP_PRIVATE,-1,0x0) = 673869824 (0x282a7000)
close(4)                     = 0 (0x0)
access("/lib/libcrypto.so.3",0)             = 0 (0x0)
mmap(0x0,3088,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673943552 (0x282b9000)
munmap(0x282b9000,0xc10)             = 0 (0x0)
mmap(0x0,656,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673943552 (0x282b9000)
munmap(0x282b9000,0x290)             = 0 (0x0)
mmap(0x0,4456,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673943552 (0x282b9000)
munmap(0x282b9000,0x1168)             = 0 (0x0)
mprotect(0x280e8000,921600,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mmap(0x0,22184,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673943552 (0x282b9000)
munmap(0x282b9000,0x56a8)             = 0 (0x0)
mprotect(0x280e8000,921600,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mprotect(0x281df000,794624,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mmap(0x0,22184,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673943552 (0x282b9000)
munmap(0x282b9000,0x56a8)             = 0 (0x0)
mprotect(0x281df000,794624,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
sigaction(SIGILL,{ 0x2806fb14 0x0|ONSTACK|RESTART|RESETHAND|NOCLDSTOP|NODEFER|NOCLDWAIT|SIGINFO ss_t },{ SIG_DFL 0x0|ONSTACK|RESTART|RESETHAND|NOCLDSTOP|NODEFER|NOCLDWAIT|SIGINFO ss_t }) = 0 (0x0)
sigprocmask(0x1,0x0,0x28087afc)             = 0 (0x0)
sigaction(SIGILL,{ SIG_DFL 0x0|ONSTACK|RESTART|RESETHAND|NOCLDSTOP|NODEFER|NOCLDWAIT|SIGINFO ss_t },0x0) = 0 (0x0)
sysarch(0x1,0xbfbfeb80)                 = 17 (0x11)
sigprocmask(0x1,0x28087aa0,0xbfbfeb80)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbfea20,63)     ERR#2 'No such file or directory'
issetugid()                     = 0 (0x0)
mmap(0x0,4096,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 673943552 (0x282b9000)
break(0x806a000)                 = 0 (0x0)
break(0x806b000)                 = 0 (0x0)
break(0x806c000)                 = 0 (0x0)
break(0x806d000)                 = 0 (0x0)
gettimeofday({1128462903 10207},0x0)         = 0 (0x0)
getuid()                     = 0 (0x0)
break(0x806e000)                 = 0 (0x0)
getpid()                     = 47264 (0xb8a0)
stat("./lighttpd.conf",0xbfbfea00)         = 0 (0x0)
open("./lighttpd.conf",0x0,01001531320)         = 4 (0x4)
mmap(0x0,3789,(0x1)PROT_READ,(0x1)MAP_SHARED,4,0x0) = 673947648 (0x282ba000)
close(4)                     = 0 (0x0)
break(0x806f000)                 = 0 (0x0)
break(0x8070000)                 = 0 (0x0)
break(0x8071000)                 = 0 (0x0)
break(0x8072000)                 = 0 (0x0)
break(0x8073000)                 = 0 (0x0)
break(0x8074000)                 = 0 (0x0)
munmap(0x282ba000,0xecd)             = 0 (0x0)
break(0x8075000)                 = 0 (0x0)
break(0x8076000)                 = 0 (0x0)
break(0x8077000)                 = 0 (0x0)
open("/dev/null",0x0,01001422331)         = 4 (0x4)
close(0)                     = 0 (0x0)
dup2(0x4,0x0)                     = 0 (0x0)
close(4)                     = 0 (0x0)
open("/dev/null",0x1,01001422331)         = 4 (0x4)
close(1)                     = 0 (0x0)
dup2(0x4,0x1)                     = 1 (0x1)
close(4)                     = 0 (0x0)
stat("/usr/local/www/",0xbfbfeab0)         = 0 (0x0)
stat("/usr/local/www/",0xbfbfeab0)         = 0 (0x0)
stat("/USR/LOCAL/WWW/",0xbfbfea50)         ERR#2 'No such file or directory'
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
open("/usr/local/lib/lighttpd/mod_indexfile.so",0x0,02) = 4 (0x4)
fstat(4,0xbfbfea40)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,12288,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 673947648 (0x282ba000)
mprotect(0x282bb000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282bb000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282bc000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x1000) = 673955840 (0x282bc000)
close(4)                     = 0 (0x0)
mmap(0x0,392,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673959936 (0x282bd000)
munmap(0x282bd000,0x188)             = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
open("/usr/local/lib/lighttpd/mod_redirect.so",0x0,027757765100) = 4 (0x4)
fstat(4,0xbfbfea40)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,12288,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 673959936 (0x282bd000)
mprotect(0x282be000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282be000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282bf000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x1000) = 673968128 (0x282bf000)
close(4)                     = 0 (0x0)
access("/lib/libpcre.so.0",0)             ERR#2 'No such file or directory'
access("/usr/lib/libpcre.so.0",0)         ERR#2 'No such file or directory'
access("/usr/lib/compat/libpcre.so.0",0)     ERR#2 'No such file or directory'
access("/usr/local/lib/libpcre.so.0",0)         = 0 (0x0)
mmap(0x0,432,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673972224 (0x282c0000)
munmap(0x282c0000,0x1b0)             = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
open("/usr/local/lib/lighttpd/mod_access.so",0x0,027757765100) = 4 (0x4)
fstat(4,0xbfbfea40)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,8192,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 673972224 (0x282c0000)
mprotect(0x282c0000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282c0000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282c1000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x0) = 673976320 (0x282c1000)
close(4)                     = 0 (0x0)
mmap(0x0,328,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 673980416 (0x282c2000)
munmap(0x282c2000,0x148)             = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
open("/usr/local/lib/lighttpd/mod_proxy.so",0x0,027757765100) = 4 (0x4)
fstat(4,0xbfbfea40)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,20480,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 673980416 (0x282c2000)
mprotect(0x282c5000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282c5000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282c6000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x3000) = 673996800 (0x282c6000)
close(4)                     = 0 (0x0)
mmap(0x0,784,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 674000896 (0x282c7000)
munmap(0x282c7000,0x310)             = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
open("/usr/local/lib/lighttpd/mod_accesslog.so",0x0,027757765100) = 4 (0x4)
fstat(4,0xbfbfea40)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,16384,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 674000896 (0x282c7000)
mprotect(0x282c9000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282c9000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282ca000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x2000) = 674013184 (0x282ca000)
close(4)                     = 0 (0x0)
mmap(0x0,576,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 674017280 (0x282cb000)
munmap(0x282cb000,0x240)             = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
open("/usr/local/lib/lighttpd/mod_dirlisting.so",0x0,027757765100) = 4 (0x4)
fstat(4,0xbfbfea40)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,20480,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 674017280 (0x282cb000)
mprotect(0x282ce000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282ce000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282cf000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x3000) = 674033664 (0x282cf000)
close(4)                     = 0 (0x0)
access("/lib/libpcre.so.0",0)             ERR#2 'No such file or directory'
access("/usr/lib/libpcre.so.0",0)         ERR#2 'No such file or directory'
access("/usr/lib/compat/libpcre.so.0",0)     ERR#2 'No such file or directory'
access("/usr/local/lib/libpcre.so.0",0)         = 0 (0x0)
mmap(0x0,656,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 674037760 (0x282d0000)
munmap(0x282d0000,0x290)             = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
open("/usr/local/lib/lighttpd/mod_staticfile.so",0x0,027757765100) = 4 (0x4)
fstat(4,0xbfbfea40)                 = 0 (0x0)
read(0x4,0x28087ba0,0x1000)             = 4096 (0x1000)
mmap(0x0,12288,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 674037760 (0x282d0000)
mprotect(0x282d1000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x282d1000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x282d2000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x1000) = 674045952 (0x282d2000)
close(4)                     = 0 (0x0)
mmap(0x0,528,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 674050048 (0x282d3000)
munmap(0x282d3000,0x210)             = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfea70)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
open("/var/run/lighttpd.pid",0xe01,0644)     ERR#17 'File exists'
stat("/var/run/lighttpd.pid",0xbfbfeb90)     = 0 (0x0)
open("/var/run/lighttpd.pid",0x601,0644)     = 4 (0x4)
getrlimit(0x8,0xbfbfebf0)             = 0 (0x0)
break(0x80b1000)                 = 0 (0x0)
stat("/etc/nsswitch.conf",0xbfbfe9a0)         = 0 (0x0)
open("/etc/nsswitch.conf",0x0,0666)         = 5 (0x5)
break(0x80b2000)                 = 0 (0x0)
break(0x80b3000)                 = 0 (0x0)
ioctl(5,TIOCGETA,0xbfbfe880)             ERR#25 'Inappropriate ioctl for device'
fstat(5,0xbfbfe800)                 = 0 (0x0)
break(0x80b7000)                 = 0 (0x0)
read(0x5,0x80b3000,0x4000)             = 113 (0x71)
read(0x5,0x80b3000,0x4000)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)
access("/usr/lib/nss_compat.so.1",0)         ERR#2 'No such file or directory'
access("/usr/local/lib/nss_compat.so.1",0)     ERR#2 'No such file or directory'
access("/lib/nss_compat.so.1",0)         ERR#2 'No such file or directory'
access("/usr/lib/nss_compat.so.1",0)         ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_compat.so.1",0)     ERR#2 'No such file or directory'
access("/usr/local/lib/nss_compat.so.1",0)     ERR#2 'No such file or directory'
access("/lib/nss_compat.so.1",0)         ERR#2 'No such file or directory'
access("/usr/lib/nss_compat.so.1",0)         ERR#2 'No such file or directory'
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)
access("/usr/lib/nss_nis.so.1",0)         ERR#2 'No such file or directory'
access("/usr/local/lib/nss_nis.so.1",0)         ERR#2 'No such file or directory'
access("/lib/nss_nis.so.1",0)             ERR#2 'No such file or directory'
access("/usr/lib/nss_nis.so.1",0)         ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_nis.so.1",0)     ERR#2 'No such file or directory'
access("/usr/local/lib/nss_nis.so.1",0)         ERR#2 'No such file or directory'
access("/lib/nss_nis.so.1",0)             ERR#2 'No such file or directory'
access("/usr/lib/nss_nis.so.1",0)         ERR#2 'No such file or directory'
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)
access("/usr/lib/nss_files.so.1",0)         ERR#2 'No such file or directory'
access("/usr/local/lib/nss_files.so.1",0)     ERR#2 'No such file or directory'
access("/lib/nss_files.so.1",0)             ERR#2 'No such file or directory'
access("/usr/lib/nss_files.so.1",0)         ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_files.so.1",0)     ERR#2 'No such file or directory'
access("/usr/local/lib/nss_files.so.1",0)     ERR#2 'No such file or directory'
access("/lib/nss_files.so.1",0)             ERR#2 'No such file or directory'
access("/usr/lib/nss_files.so.1",0)         ERR#2 'No such file or directory'
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)
access("/usr/lib/nss_dns.so.1",0)         ERR#2 'No such file or directory'
access("/usr/local/lib/nss_dns.so.1",0)         ERR#2 'No such file or directory'
access("/lib/nss_dns.so.1",0)             ERR#2 'No such file or directory'
access("/usr/lib/nss_dns.so.1",0)         ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_dns.so.1",0)     ERR#2 'No such file or directory'
access("/usr/local/lib/nss_dns.so.1",0)         ERR#2 'No such file or directory'
access("/lib/nss_dns.so.1",0)             ERR#2 'No such file or directory'
access("/usr/lib/nss_dns.so.1",0)         ERR#2 'No such file or directory'
sigprocmask(0x3,0x28087ab0,0x0)             = 0 (0x0)
sigprocmask(0x1,0x28087aa0,0xbfbfe410)         = 0 (0x0)

-- mischa


Files

1.4.6-ssl-error.diff (2.66 KB) 1.4.6-ssl-error.diff patch against 1.4.6 to flush the ssl error-queue jan, 2005-10-15 07:40
Actions #1

Updated by Anonymous over 16 years ago

One thing that forgot to mention is the config.


$SERVER["socket"] == "<IP ADDRESS>:443" {
  ssl.engine = "enable" 
  ssl.ca-file = "/usr/local/etc/certs/CA.crt" 
  ssl.pemfile = "/usr/local/etc/certs/cert.pem" 
  proxy.server = ( "" => ( ( "host" => "<IP ADDRESS>", "port" => 80 )))
}

The error messages above are with every single https request that comes in.

-- mischa

Actions #2

Updated by Anonymous over 16 years ago

The errors still exist in 1.4.6

-- lighttpd

Actions #3

Updated by jan over 16 years ago

  • Status changed from New to Assigned

Is the attached fix helping ?

Actions #4

Updated by Anonymous over 16 years ago

It still tells me that something is wrong.


2005-10-15 11:14:52: (network_openssl.c.106) SSL (error): 5 0 22 Unknown error: 0 
2005-10-15 11:14:52: (connections.c.529) connection closed: write failed on fd 9 
2005-10-15 11:14:52: (network_openssl.c.106) SSL (error): 5 0 22 Unknown error: 0 
2005-10-15 11:14:52: (connections.c.529) connection closed: write failed on fd 9 
2005-10-15 11:14:55: (network_openssl.c.106) SSL (error): 5 0 22 Unknown error: 0 
2005-10-15 11:14:55: (connections.c.529) connection closed: write failed on fd 9 

But I am not sure of the patch was applied correct.

-- lighttpd

Actions #5

Updated by Anonymous over 16 years ago

Patch output:


Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- src/connections.c  (revision 782)
|+++ src/connections.c  (working copy)
--------------------------
Patching file src/connections.c using Plan A...
Hunk #1 succeeded at 240.
Hunk #2 succeeded at 276.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: src/network_openssl.c
|===================================================================
|--- src/network_openssl.c      (revision 782)
|+++ src/network_openssl.c      (working copy)
--------------------------
Patching file src/network_openssl.c using Plan A...
Hunk #1 succeeded at 85.
Hunk #2 succeeded at 116.
done

-- lighttpd

Actions #6

Updated by Anonymous over 16 years ago

I'm seeing the same problem (1.4.6 on freebsd 5.4, havent tried on linux yet), only I have narrowed it down a bit more, the problem does not occur when serving fastcgi or static files over ssl, only cgi's, and as far as I can tell the attached patch does not solve the problem.

2005-10-16 17:31:24: (network_openssl.c.104) SSL (error): 5 0 22 Unknown error: 0
2005-10-16 17:31:24: (connections.c.515) connection closed: write failed on fd 8

-- cody

Actions #7

Updated by Anonymous over 16 years ago

Looks like it may have something to do with connections containing "Connection: close"

-- cody

Actions #8

Updated by jan over 16 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to fixed

After I could reproduce it locally with 'wget' and non-keep-alive requests I added


  if (con->keep_alive == 0) {
    SSL_set_shutdown(ssl, SSL_RECEIVED_SHUTDOWN);
  }

at the top of to network_openssl.c (line 57) and fixed the 'Success' response that way.

Check r803

Actions #9

Updated by Anonymous over 16 years ago

Good stuff, will this be included in 1.4.7? ;)

-- mischa

Actions #10

Updated by jan over 16 years ago

sure, can you verify that it works for you ?

Actions #11

Updated by Anonymous over 16 years ago

Fantastic!

I'm going to patch my source and I hope it works on my side :-)

-- tonka

Actions #12

Updated by Anonymous over 16 years ago

It works on my side!

Good work! Can't wait for 1.4.7

-- tonka

Actions #13

Updated by Anonymous over 16 years ago

Hi, I have the exact same problem. Thanks for fixing it. Do you know how long until 1.4.7? Thanks!

-- lighttpd

Actions #14

Updated by Anonymous over 16 years ago

  • Status changed from Fixed to Need Feedback
  • Resolution deleted (fixed)

The problem is still in 1.4.8. :(

-- lighttpd

Actions #15

Updated by conny over 16 years ago

Is the problem still present in 1.4.10?

If so: is the problem strictly related to using Safari?

Actions #16

Updated by jan almost 16 years ago

  • Status changed from Need Feedback to Fixed
  • Resolution set to fixed

fixed in 1.4.12

Actions

Also available in: Atom