jdk/src/share/classes/sun/security/ssl/EngineWriter.java
author smarks
Fri, 14 Jan 2011 15:31:45 -0800
changeset 7990 57019dc81b66
parent 5506 202f599c92aa
child 14664 e71aa0962e70
permissions -rw-r--r--
7012003: diamond conversion for ssl Reviewed-by: wetmore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.security.ssl;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import javax.net.ssl.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.io.IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.nio.ByteBuffer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.LinkedList;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import javax.net.ssl.SSLEngineResult.HandshakeStatus;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import sun.misc.HexDumpEncoder;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * A class to help abstract away SSLEngine writing synchronization.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
final class EngineWriter {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
     * Outgoing handshake Data waiting for a ride is stored here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
     * Normal application data is written directly into the outbound
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
     * buffer, but handshake data can be written out at any time,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
     * so we have buffer it somewhere.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
     * When wrap is called, we first check to see if there is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
     * any data waiting, then if we're in a data transfer state,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
     * we try to write app data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     * This will contain either ByteBuffers, or the marker
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * HandshakeStatus.FINISHED to signify that a handshake just completed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    private LinkedList<Object> outboundList;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    private boolean outboundClosed = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /* Class and subclass dynamic debugging support */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    private static final Debug debug = Debug.getInstance("ssl");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    EngineWriter() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
        outboundList = new LinkedList<Object>();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * Upper levels assured us we had room for at least one packet of data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * As per the SSLEngine spec, we only return one SSL packets worth of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    private HandshakeStatus getOutboundData(ByteBuffer dstBB) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        Object msg = outboundList.removeFirst();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        assert(msg instanceof ByteBuffer);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        ByteBuffer bbIn = (ByteBuffer) msg;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        assert(dstBB.remaining() >= bbIn.remaining());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        dstBB.put(bbIn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
         * If we have more data in the queue, it's either
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
         * a finished message, or an indication that we need
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
         * to call wrap again.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        if (hasOutboundDataInternal()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
            msg = outboundList.getFirst();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
            if (msg == HandshakeStatus.FINISHED) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                outboundList.removeFirst();     // consume the message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                return HandshakeStatus.FINISHED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                return HandshakeStatus.NEED_WRAP;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
            return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * Properly orders the output of the data written to the wrap call.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * This is only handshake data, application data goes through the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * other writeRecord.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    synchronized void writeRecord(EngineOutputRecord outputRecord,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            MAC writeMAC, CipherBox writeCipher) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
         * Only output if we're still open.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        if (outboundClosed) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            throw new IOException("writer side was already closed.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        outputRecord.write(writeMAC, writeCipher);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
         * Did our handshakers notify that we just sent the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
         * Finished message?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
         * Add an "I'm finished" message to the queue.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        if (outputRecord.isFinishedMsg()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
            outboundList.addLast(HandshakeStatus.FINISHED);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * Output the packet info.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    private void dumpPacket(EngineArgs ea, boolean hsData) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
            HexDumpEncoder hd = new HexDumpEncoder();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
            ByteBuffer bb = ea.netData.duplicate();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
            int pos = bb.position();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
            bb.position(pos - ea.deltaNet());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
            bb.limit(pos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
            System.out.println("[Raw write" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                (hsData ? "" : " (bb)") + "]: length = " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                bb.remaining());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
            hd.encodeBuffer(bb, System.out);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        } catch (IOException e) { }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * Properly orders the output of the data written to the wrap call.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * Only app data goes through here, handshake data goes through
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * the other writeRecord.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * Shouldn't expect to have an IOException here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * Return any determined status.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    synchronized HandshakeStatus writeRecord(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            EngineOutputRecord outputRecord, EngineArgs ea, MAC writeMAC,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            CipherBox writeCipher) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
         * If we have data ready to go, output this first before
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
         * trying to consume app data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        if (hasOutboundDataInternal()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            HandshakeStatus hss = getOutboundData(ea.netData);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
            if (debug != null && Debug.isOn("packet")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                 * We could have put the dump in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                 * OutputRecord.write(OutputStream), but let's actually
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                 * output when it's actually output by the SSLEngine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                dumpPacket(ea, true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
            return hss;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
         * If we are closed, no more app data can be output.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
         * Only existing handshake data (above) can be obtained.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        if (outboundClosed) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
            throw new IOException("The write side was already closed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        outputRecord.write(ea, writeMAC, writeCipher);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        if (debug != null && Debug.isOn("packet")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
            dumpPacket(ea, false);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
         * No way new outbound handshake data got here if we're
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
         * locked properly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
         * We don't have any status we can return.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * We already hold "this" lock, this is the callback from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * outputRecord.write() above.  We already know this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * writer can accept more data (outboundClosed == false),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * and the closure is sync'd.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    void putOutboundData(ByteBuffer bytes) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        outboundList.addLast(bytes);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * This is for the really rare case that someone is writing from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * the *InputRecord* before we know what to do with it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    synchronized void putOutboundDataSync(ByteBuffer bytes)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
            throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        if (outboundClosed) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            throw new IOException("Write side already closed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
        outboundList.addLast(bytes);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * Non-synch'd version of this method, called by internals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    private boolean hasOutboundDataInternal() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
        return (outboundList.size() != 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    synchronized boolean hasOutboundData() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        return hasOutboundDataInternal();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    synchronized boolean isOutboundDone() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
        return outboundClosed && !hasOutboundDataInternal();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
    synchronized void closeOutbound() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
        outboundClosed = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
}