         self.pendingWrites.failAll(error: error, close: true)
     }
 
-    override func writeToSocket() throws -> OverallWriteResult {
+    override fileprivate func writeToSocket() throws -> OverallWriteResult {
         let result = try self.pendingWrites.triggerAppropriateWriteOperations(scalarWriteOperation: { (ptr, destinationPtr, destinationSize) in
             guard ptr.count > 0 else {
                 // No need to call write if the buffer is empty.

    }

    /// `false` if the whole `Channel` is closed and so no more IO operation can be done.
    public var isOpen: Bool {
        assert(eventLoop.inEventLoop)
        return self._isOpen
    }

        return pendingWrites.isWritable
    }

    override fileprivate var isOpen: Bool {
        assert(eventLoop.inEventLoop)
        return pendingWrites.isOpen
    }
