Socket listener properties

New listener properties support socket channels with Jetty 6.1.

StepsSetting socket listener properties

Other listener configuration properties are described in Chapter 3, “Creating and Configuring Servers,” in the EAServer System Administration Guide.

  1. Start EAServer, and use the Management Console to connect to the server.

  2. Expand the Listeners folder, then select the listener to configure.

  3. On the General tab, enter:

    Display name

    Configuration property

    Description

    Default value

    Use SocketChannel Type Listener

    useSocketChannel

    Use a socket channel, instead of a simple socket; true or false.

    NoteHTTPS and IIOPS listeners always use simple sockets.

    false

    Thread per Connection

    useBlockingNIO

    Use blocking NIO; true or false.

    NoteIIOP listeners always use blocking NIO.

    false

    Maximum Number of Threads

    maxThreads

    Maximum number of threads that EAServer can use to process requests, including acceptor threads for NIO

    15

    Number of Acceptors

    numberOfAcceptor

    Number of acceptor threads

    For NIO, the number of threads available for processing requests equals the maximum number of threads minus the number of acceptor threads.

    1

    Header Buffer Size (bytes)

    headerBufferSize

    Size of the buffer header

    8192 bytes

    Request Buffer Size (bytes)

    requestBufferSize

    Size of the request buffer

    32768 bytes

    Response Buffer Size (bytes)

    responseBufferSize

    Size of the response buffer

    65536 bytes

    Maximum Idle Time (ms)

    maxIdleTime

    Number of milliseconds a socket remains idle before it disconnects

    3600000ms

    Socket Linger Time (ms)

    soLingerTime

    Number of milliseconds a socket waits to transmit data. After the specified period of time, unsent data is lost.

    1000ms

Connection types

The values of useSocketChannel and useBlockingNIO define the connection type:

For this connection type

Set useSocketChannel to

Set useBlockingNIO to

Sockets

false

true or false

Blocking NIO

true

true

Select channel NIO

true

false