select: Function not implemented

Has anyone ever seen this problem?? I am using select() to monitor 2 or
more tcp sockets. 98% of the time everything is fine. Then all of a sudden
select returns error 89: function not implemented. The client is JAVA 1.3
on win2000. When this happens I ask the select which FD’s have errors on
them and it doesn’t seem to think there are any.

This is really bothering me. No way to reproduce it, no way to detect it.
Don’t tell me I have to change my design to start polling.

HELP!
Thanks

Paul Vander Byl wrote:

Has anyone ever seen this problem?? I am using select() to monitor 2 or
more tcp sockets. 98% of the time everything is fine. Then all of a sudden
select returns error 89: function not implemented. The client is JAVA 1.3
on win2000. When this happens I ask the select which FD’s have errors on
them and it doesn’t seem to think there are any.

This is really bothering me. No way to reproduce it, no way to detect it.
Don’t tell me I have to change my design to start polling.

Maybe you are passing are wrong set of FD?

HELP!
Thanks

Thanks for the response,

I currently check the FD set just before I give it to the select().
The FD set has only two valid socket descriptors corresponding to the 2
clients. This is a wierd one for me. I have a similar server which I poll
the Fd’s and it runs mint all the time. Oh well, couple days work and I’ll
have converted this one to polling also.

Thanks



“Mario Charest” postmaster@127.0.0.1 wrote in message
news:3D09E536.3080708@127.0.0.1

Paul Vander Byl wrote:
Has anyone ever seen this problem?? I am using select() to monitor 2 or
more tcp sockets. 98% of the time everything is fine. Then all of a
sudden
select returns error 89: function not implemented. The client is JAVA
1.3
on win2000. When this happens I ask the select which FD’s have errors
on
them and it doesn’t seem to think there are any.

This is really bothering me. No way to reproduce it, no way to detect
it.
Don’t tell me I have to change my design to start polling.

Maybe you are passing are wrong set of FD?


HELP!
Thanks
\

Make sure you have FD_SETSIZE (sys/select.h) defined large enough.

-seanb

Paul Vander Byl <paul@gandacar.ca> wrote:
: Has anyone ever seen this problem?? I am using select() to monitor 2 or
: more tcp sockets. 98% of the time everything is fine. Then all of a sudden
: select returns error 89: function not implemented. The client is JAVA 1.3
: on win2000. When this happens I ask the select which FD’s have errors on
: them and it doesn’t seem to think there are any.

: This is really bothering me. No way to reproduce it, no way to detect it.
: Don’t tell me I have to change my design to start polling.

: HELP!
: Thanks