On Fri, 2014-08-22 at 18:41 +0200, Nikos Mavrogiannopoulos wrote: > The cause is here: > pselect6(22, [4 7 8 21], NULL, NULL, {10, 0}, {[], 8}) = 1 (in [7], > left {9, 999997763}) > recvfrom(5, 0xad9330, 18780, 0, 0, 0) = -1 EBADF (Bad file descriptor) > > It is waiting for descriptors 4,7,8,21 and then receiving from > descriptor 5. That is an issue it should now be fixed in the > repository. > What I don't understand though is how it does get into an infinite > loop. All the callers of recvfrom() check for its return code. I will > check again later with a more clear head. It seems I figured it out. A work-around is included with ocserv-0.8.3, and a proper fix will be in the gnutls release. regards, Nikos