Comments (3)
Thank you for raising this issue and contributing a test @spearmootz. I added the test you created to the sessions file on my current working branch.
Once you configure a .env file in the tests directory you can call npm run test-session
to call the test you contributed as part of the session test suite.
The test confirms the client will become unresponsive when a large number of requests are made before a session is available. This behavior is only exhibited when there are no sessions available before request processing.
I found that more than 9 requests for a client with concurrency set to 25, and more than 18 requests for a client with concurrency set to 35 caused the behavior.
I am inclined to add an iterator to the agent watcher process to monitor for this behavior and force the agent to resolve a session to prevent the request queue from stopping.
A PR to fix this behavior would be welcome.
from fms-api-client.
from fms-api-client.
here is what i have gathered so far. I am seeing a request successfully go through all the paces.
then i see a second request go through, make the call to fm successfully. but then it gets here
return typeof pending.resolve === 'function'
? pending.resolve(request)
: request
pending.resolve is a function as expected but then i dont see it being handled in the interceptor like the other one is.
i think it has to do with the interceptor logic. still working on it
from fms-api-client.
Related Issues (16)
- fms-api-client - unable to verify the first certificate, local server HOT 1
- Going over concurrency doesn't throw an error but hangs
- Sessions not being reused when having multiple concurrent requests
- Invalid FileMaker Data API token when using multiple clients HOT 1
- Request never completes - Node async bug HOT 2
- Extremely outdated dependencies - abandoned?
- Export Utility Methods HOT 1
- Authenticate Method Response Handling HOT 1
- Unable to login/query for records HOT 6
- Possible bug HOT 6
- Opening Multiple FM Data API Sessions HOT 1
- Stale DAPI Sessions causing issues HOT 2
- Sessions aren't reused HOT 2
- Performance Question HOT 2
- Browser based library? HOT 1
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 fms-api-client.