http://www.perlmonks.org?node_id=778661


in reply to Re^3: Socket Handle not sending data ?
in thread Socket Handle not sending data ?

Hi, Could you please point some good design options? Also, will it work if I try to make it without threads using non-blocking socket call? so if I try to connect to a port and it is not up then instead of blocking I just skip to next port without any delay. Is this something that makes more sense than previous approach? Thanks

Replies are listed 'Best First'.
Re^5: Socket Handle not sending data ?
by ikegami (Patriarch) on Jul 09, 2009 at 19:19 UTC

    Could you please point some good design options?

    What are you trying yo do?

      I want to send millions of events across multiple servers. And I don't want to stop or block sending if one of the server goes down. I also don't want to skip any event. If the server, that's down, comes backup it should be included into my active servers list to which I am sending all my events. I can't even afford a delay of 0.5 seconds in sending of events. Thanks