Changeset 5a1027c5


Ignore:
Timestamp:
Jan 16, 2011 3:31:45 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
99405b7d
Parents:
0ed88c5
Message:
  • UPnP:
    • Change all log errors to warns (tickets #76, #95, #120)
    • Double socket soTimeout to 2 seconds
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    r0ed88c5 r5a1027c5  
     12011-01-16 zzz
     2    * Console: Allow editing of console args
     3    * UDP: Prevent rare startup NPE
     4    * UPnP:
     5      - Change all log errors to warns (tickets #76, #95, #120)
     6      - Double socket soTimeout to 2 seconds
     7
    182011-01-15 zzz
    29    * Console: Add some HTTP headers in the view servlets
  • router/java/src/net/i2p/router/RouterVersion.java

    r0ed88c5 r5a1027c5  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 11;
     21    public final static long BUILD = 12;
    2222
    2323    /** for example "-test" */
    24     public final static String EXTRA = "";
     24    public final static String EXTRA = "-rc";
    2525    public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
    2626    public static void main(String args[]) {
  • router/java/src/org/cybergarage/http/HTTPRequest.java

    r0ed88c5 r5a1027c5  
    389389                                // Yeah, the UPnP standard is a minute or something, too bad.
    390390                                // If he can't get back to us in a few seconds, forget it.
    391                                 // And set the soTimeout to 1 second (for reads).
     391                                // And set the soTimeout to 2 second (for reads).
    392392                                //postSocket = new Socket(host, port);
    393393                                postSocket = new Socket();
    394                                 postSocket.setSoTimeout(1000);
     394                                postSocket.setSoTimeout(2000);
    395395                                SocketAddress sa = new InetSocketAddress(host, port);
    396396                                postSocket.connect(sa, 3000);
  • router/java/src/org/cybergarage/util/Debug.java

    r0ed88c5 r5a1027c5  
    5353        public static final void warning(String s) {
    5454                if (_log != null)
    55                         _log.error(s);
     55                        _log.warn(s);
    5656        }
    5757        public static final void warning(String m, Exception e) {
    5858                if (_log != null)
    59                         _log.error(m, e);
     59                        _log.warn(m, e);
    6060        }
    6161        public static final void warning(Exception e) {
    6262                if (_log != null)
    63                         _log.error("", e);
     63                        _log.warn("", e);
    6464        }
    6565}
Note: See TracChangeset for help on using the changeset viewer.