CraZySacX / node-jdbc

JDBC Wrapper for node.js
140 stars 106 forks source link

node jdbc blocking the event loop till the query is done #194

Open theterra opened 5 years ago

theterra commented 5 years ago

node jdbc blocking the event loop until the query is done. Help

vahidrahmani commented 5 years ago

use jdb.conn.close() when response delyed or fail your request

theterra commented 5 years ago

@vahidrahmani Example please? Is it possible to use async?

Tomas2D commented 2 years ago

@vahidrahmani @theterra I think that is not possible, if event loop is blocked, that simple means that call stack is not empty and thus setInterval or setTimeout wont work..

Tomas2D commented 2 years ago

I solved that issue by switching to https://github.com/naxmefy/node-jdbc