hunk.code_window:     handleError(err, res) { // eslint-disable-line no-unused-vars
           // NO-OP for inherited classes to override
       }
       handleResponse(methodName, successCallback, errorCallback, err, res) {
           if (res && res.header) {
               this.serverVersion = res.header[HEADER_X_VERSION_ID];
               if (res.header[HEADER_X_VERSION_ID]) {
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit:     handleSuccess(res) { // eslint-disable-line no-unused-vars
           // NO-OP for inherited classes to override
       }
  
hunk.file_path: webapp/client/client.jsx
hunk.type: add
file: // Copyright 2015 The Go Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style
  // license that can be found in the LICENSE file.
  
  // +build darwin dragonfly freebsd linux netbsd openbsd solaris
  
  package nettest
  
  import (
  	"fmt"
  	"os"
  	"runtime"
  	"syscall"
  )
  
  func maxOpenFiles() int {
  	var rlim syscall.Rlimit
  	if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlim); err != nil {
  		return defaultMaxOpenFiles
  	}
  	return int(rlim.Cur)
  }
  
  func supportsRawIPSocket() (string, bool) {
  	if os.Getuid() != 0 {
  		return fmt.Sprintf("must be root on %s", runtime.GOOS), false
  	}
  	return "", true
  }
  