tags:

views:

27

answers:

1

I've got a server application using select.select(), and now I'm trying to add SSL to it, however I get the following error when listening to the "raw" sockets:

ValueError: file descriptor cannot be a negative integer (-1)

so I figured I'd use the ssl streams returned by ssl.wrap_socket in select instead. Doing so, it doesn't return any errors but it doesn't work either - I'm not really sure what the problem is, I've done a lot of research and encountered posts with similar problems, but I've found no solution to this yet.

Really appreciate any help.

A: 

As Marius pointed out, select.select() works with SSL sockets, I still do not know what caused my silent error but I jumped my gun when thinking it was SSL + select(). Thus this question is answered.

Andreas