@andersbakken/fisk 3.5.5 → 3.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andersbakken/fisk",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
4
4
  "description": "Fisk, a distributed compile system",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -5,6 +5,7 @@ const http = require("http");
5
5
  const express = require("express");
6
6
  const path = require("path");
7
7
  const crypto = require("crypto");
8
+ const fs = require("fs");
8
9
 
9
10
  class Client extends EventEmitter {
10
11
  constructor(object) {
@@ -104,7 +105,7 @@ class Server extends EventEmitter {
104
105
  let defaultBacklog = 128;
105
106
  try {
106
107
  defaultBacklog = parseInt(fs.readFileSync("/proc/sys/net/core/somaxconn", "utf8")) || 128;
107
- } catch () {
108
+ } catch (err) {
108
109
  }
109
110
 
110
111
  let backlog = this.option.int("backlog", defaultBacklog);