http://qs321.pair.com?node_id=733191


in reply to How to set a timeout for the socket filehandle generated by POE::Wheel::SocketFactory ?

The socket is just a plain Perl socket, so all Perl socket rules apply. Whatever normally works for your operating system should be fine.

POE::Wheel::ReadWrite will send an ErrorEvent as soon as the socket reports a problem.

The "Invalid argument" error means that one of your parameters to setsockopt() is incorrect, but it doesn't say which. You should inspect the parameters to verify they're correct for your operating system.