Changeset b095b7e for apps/ministreaming


Ignore:
Timestamp:
Oct 7, 2012 8:57:35 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e99dd72
Parents:
6b97e1b
Message:
  • i2ptunnel:
    • Set default read timeout in standard server
    • Reduce header timeout, enforce total header timeout in IRC and HTTP servers (ticket #723)
  • Streaming: Don't ignore option or force connect timeout to 5 minutes
  • Streaming javadocs
  • SocketTimeout? cleanup
Location:
apps/ministreaming/java/src/net/i2p/client/streaming
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketOptions.java

    r6b97e1b rb095b7e  
    1818     * How long we will wait for the ACK from a SYN, in milliseconds.
    1919     *
     20     * Default 60 seconds. Max of 2 minutes enforced in Connection.java,
     21     * and it also interprets <= 0 as default.
     22     *
    2023     * @return milliseconds to wait, or -1 if we will wait indefinitely
    2124     */
     
    2427    /**
    2528     * Define how long we will wait for the ACK from a SYN, in milliseconds.
     29     *
     30     * Default 60 seconds. Max of 2 minutes enforced in Connection.java,
     31     * and it also interprets <= 0 as default.
    2632     *
    2733     * @param ms timeout in ms
     
    3339     * for more data.  If this value is exceeded, the read() throws
    3440     * InterruptedIOException
     41     *
     42     * WARNING: Default -1 (unlimited), which is probably not what you want.
     43     *
    3544     * @return timeout in ms
    3645     */
     
    4150     * for more data.  If this value is exceeded, the read() throws
    4251     * InterruptedIOException
     52     *
     53     * WARNING: Default -1 (unlimited), which is probably not what you want.
     54     *
    4355     * @param ms timeout in ms
    4456     */
     
    5062     * either some data is removed or the connection is closed.  If this is
    5163     * less than or equal to zero, there is no limit (warning: can eat ram)
     64     *
     65     * Default 64 KB
    5266     *
    5367     * @return buffer size limit, in bytes
     
    6175     * less than or equal to zero, there is no limit (warning: can eat ram)
    6276     *
     77     * Default 64 KB
     78     *
    6379     * @param numBytes How much data will we accept that hasn't been written out yet.
    6480     */
     
    7086     * InterruptedIOException.  If this is less than or equal to zero, there
    7187     * is no timeout.
     88     *
     89     * Default -1 (unlimited)
     90     *
    7291     * @return wait time to block on the output stream while waiting for the data to flush.
    7392     */
     
    7998     * InterruptedIOException.  If this is less than or equal to zero, there
    8099     * is no timeout.
     100     *
     101     * Default -1 (unlimited)
     102     *
    81103     * @param ms wait time to block on the output stream while waiting for the data to flush.
    82104     */
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketOptionsImpl.java

    r6b97e1b rb095b7e  
    9797     * How long we will wait for the ACK from a SYN, in milliseconds.
    9898     *
     99     * Default 60 seconds. Max of 2 minutes enforced in Connection.java,
     100     * and it also interprets <= 0 as default.
     101     *
    99102     * @return milliseconds to wait, or -1 if we will wait indefinitely
    100103     */
     
    105108    /**
    106109     * Define how long we will wait for the ACK from a SYN, in milliseconds.
     110     *
     111     * Default 60 seconds. Max of 2 minutes enforced in Connection.java,
     112     * and it also interprets <= 0 as default.
    107113     *
    108114     */
     
    115121     * for more data.  If this value is exceeded, the read() throws
    116122     * InterruptedIOException
     123     *
     124     * WARNING: Default -1 (unlimited), which is probably not what you want.
    117125     */
    118126    public long getReadTimeout() {
     
    124132     * for more data.  If this value is exceeded, the read() throws
    125133     * InterruptedIOException
     134     *
     135     * WARNING: Default -1 (unlimited), which is probably not what you want.
    126136     */
    127137    public void setReadTimeout(long ms) {
     
    135145     * less than or equal to zero, there is no limit (warning: can eat ram)
    136146     *
     147     * Default 64 KB
     148     *
    137149     * @return buffer size limit, in bytes
    138150     */
     
    147159     * less than or equal to zero, there is no limit (warning: can eat ram)
    148160     *
     161     * Default 64 KB
     162     *
    149163     */
    150164    public void setMaxBufferSize(int numBytes) {
     
    157171     * InterruptedIOException.  If this is less than or equal to zero, there
    158172     * is no timeout.
     173     *
     174     * Default -1 (unlimited)
    159175     */
    160176    public long getWriteTimeout() {
     
    167183     * InterruptedIOException.  If this is less than or equal to zero, there
    168184     * is no timeout.
     185     *
     186     * Default -1 (unlimited)
    169187     */
    170188    public void setWriteTimeout(long ms) {
Note: See TracChangeset for help on using the changeset viewer.