Hello Everyone,

I am running into a problem, where each connection seems to leak hundreds
of file descriptors under the server process. I am a freshy to this group.
Have anyone run into this, or I am the lucky.

Thanks
--GG

server:
====
openssl s_server -engine cryptodev -key /tmp/ssl/private/MyServerKey.pem
-cert /tmp/ssl/certs/server.pem -accept 6009

Client:
=====
 openssl s_client -engine cryptodev -tls1 -connect localhost:6009

Debug:
=====
#ps -ef | grep openssl
# root      2398  5794  0 10:24 pts/1    00:00:00 openssl s_server -engine
cryptodev -key /tmp/ssl/private/MyServerKey.pem -cert
/tmp/ssl/certs/server.pem -accept 6009
root      2955  5884  0 10:31 pts/2    00:00:00 grep openssl
root@gg:~# ls -l /proc/5794/fd | wc -l
4
root@gg:~# ls -l /proc/5794/fd
lrwx------    1 root     root           64 Jun 27 10:31 0 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 10:31 1 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 10:31 10 -> /dev/tty
lrwx------    1 root     root           64 Jun 26 14:54 2 -> /dev/pts/1
root@gg:~# ls -l /proc/2398/fd
lrwx------    1 root     root           64 Jun 27 10:32 0 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 10:32 1 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 10:25 2 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 10:32 3 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 10:32 4 ->
socket:[1605681]
lrwx------    1 root     root           64 Jun 27 10:32 5 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 10:32 6 ->
socket:[1605682]
root@gg:~# ps -ef | grep openssl
root      8252  5794  0 11:36 pts/1    00:00:00 openssl s_server -engine
cryptodev -key /tmp/ssl/private/MyServerKey.pem -cert
/tmp/ssl/certs/server.pem -accept 6009
root      8253  5767  0 11:36 pts/0    00:00:00 openssl s_client -engine
cryptodev -tls1 -connect localhost 6009
root      8267  5884  0 11:36 pts/2    00:00:00 grep openssl
root@gg:~# ls -l /proc/8252/fd
lrwx------    1 root     root           64 Jun 27 11:36 0 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 11:36 1 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 11:36 10 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 100 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 101 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 102 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 103 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 104 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 105 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 106 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 107 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 108 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 109 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 110 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 111 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 112 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 113 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 114 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 115 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 116 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 117 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 118 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 119 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 12 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 120 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 121 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 122 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 123 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 124 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 125 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 126 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 127 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 128 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 129 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 13 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 130 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 131 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 132 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 133 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 134 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 135 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 136 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 137 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 138 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 139 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 14 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 140 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 141 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 142 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 143 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 144 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 145 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 146 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 147 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 148 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 149 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 15 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 150 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 151 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 152 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 153 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 154 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 155 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 156 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 16 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 17 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 18 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 19 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 2 -> /dev/pts/1
lrwx------    1 root     root           64 Jun 27 11:36 20 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 21 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 22 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 23 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 24 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 25 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 26 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 27 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 28 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 29 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 3 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 30 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 31 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 32 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 33 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 34 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 35 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 36 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 37 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 38 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 39 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 4 ->
socket:[1703591]
lrwx------    1 root     root           64 Jun 27 11:36 40 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 41 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 42 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 43 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 44 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 45 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 46 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 47 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 48 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 49 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 5 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 50 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 51 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 52 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 53 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 54 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 55 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 56 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 57 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 58 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 59 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 6 ->
socket:[1703592]
lrwx------    1 root     root           64 Jun 27 11:36 60 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 61 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 62 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 63 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 64 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 65 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 66 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 67 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 68 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 69 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 7 ->
socket:[1703593]
lrwx------    1 root     root           64 Jun 27 11:36 70 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 71 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 72 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 73 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 74 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 75 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 76 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 77 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 78 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 79 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 8 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 80 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 81 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 82 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 83 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 84 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 85 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 86 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 87 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 88 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 89 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 90 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 91 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 92 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 93 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 94 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 95 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 96 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 97 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 98 -> /dev/crypto
lrwx------    1 root     root           64 Jun 27 11:36 99 -> /dev/crypto

Reply via email to