in reply to non-blocking select with IO::Select

c-era: I kiss you. The remove() sorted it.

tye and c-era: How does getlines() work in a socket context? It will split the data on $/, right, like angle brackets... but how does it know when the socket has "finished"? Or doesn't it?

anybody: still wondering if I am doing the right thing. What will happen if I replace print "yo"; with something longer and more complicated? Will the IO::Socket listener start rejecting people? Or does it queue them up?

xxx

dave hj~

  • Comment on Re: non-blocking select with IO::Select

Replies are listed 'Best First'.
Re: Re: non-blocking select with IO::Select
by c-era (Curate) on Jul 11, 2001 at 19:37 UTC
    The getlines() work just like it does on files. When the socket has finished an EOF is sent, just like when working with files.

    IO::Socket has a parameter called Listen. This controls the number of connections that can be waiting for an accept. I.E. if you have Listen => 10, if 11 people connect to your server while it is busy, 10 people will be waiting, and 1 person will get a server busy error.

    I hope this answers your questions.