Comments (1)
it's happening only once, when server starts and takes less than couple of
ms to handle. I don't think it's an issue.
On Mon, 22 Aug 2016 at 16:19, Petr Huřťák [email protected] wrote:
In
https://github.com/RafalWilinski/express-status-monitor/blob/master/index.js#L99-L100
.replace(/{{script}}/g, fs.readFileSync(path.join(__dirname, '/app.js'))) .replace(/{{style}}/g, fs.readFileSync(path.join(__dirname, '/style.css')));
You are using sync methods, this seems like a bad idea. As far as I know,
sync methods will block the whole thread, while doing the IO. If you use
async method, that thread will be free to handle other requests until
feadFile is finished.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#34, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADPAgPWn7ejVmJS0k2clKFsXgd-TKr_lks5qibANgaJpZM4Jp6zX
.
from express-status-monitor.
Related Issues (20)
- Socket.io extra headers
- Installation on centos 7 HOT 1
- Package breaks with non-vulnerable Socket.Io version 4.1.2 HOT 1
- Cannot access status path HOT 3
- Not working on MacOS Safari, iOS browsers. HOT 2
- Own Socket instance? HOT 2
- Critical security vulnerability HOT 1
- ES5 import clause HOT 1
- Synk security issues
- ```healthcheck``` Failed for succesful host request
- Breaking changes on security update for socket.io-parser
- How to graceful shutdown HOT 2
- event-loop-stats not found, ignoring event loop metrics HOT 1
- Alert And Notification HOT 2
- Not working when running as root on a raspberry pi
- WebSocket connection to '<URL>' failed: WebSocket is closed before the connection is established. HOT 2
- Doesn't play well with vitest
- Dark UI proposal
- Add new field for report
- cannot pass header into endpoint healthcheck
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-status-monitor.