Comments (7)
With the current version (0.9.14), I believe the SBCL workaround should be:
(setf dexador.connection-cache::*threads-connection-pool*
(make-hash-table :test 'equal :synchronized t))
not as given above as:
(setf cl-dbi::*threads-connection-pool*
(make-hash-table :test 'equal :synchronized t))
from dexador.
(nit: your title is truncated)
from dexador.
@vindarel probably I just didn't finish it. Now it is fixed.
By the way, I've seen a similar error in Ultralisp.org's logs.
Sometimes it stop working because of that and I have to restart docker container :(
We need to invest some time and to fix it.
from dexador.
This issue is similar to fukamachi/cl-dbi#46 a lock should be added to guard hash from parallel modifications.
Or maybe some lock free structure like http://quickdocs.org/cl-skip-list/ could be used.
from dexador.
I've used cl-skip-list once, but in practice and for my use-case its performance was inferior to sbcl synchronized hash-table, and likely that will be also enough for most people. probably for sbcl only unfortunately, a very easy fix is to use (make-hashtable :synchronized t).
from dexador.
@fukamachi probably here https://github.com/fukamachi/cl-dbi/blob/7ba050dea8d137c1f85b7e704d4fc945104bf283/src/cache/thread.lisp#L19-L21 we need to use bt:with-lock-held because hash is modified and this is not a thread safe operation.
from dexador.
Thank you, @Linden6! Original post includes the code for cl-dbi, which has a similar problem.
from dexador.
Related Issues (20)
- Windows: Content-Type is replaced with "text/plain" when `:content` is present HOT 3
- Dexador started automatically retry bad requests, but previosly didn't HOT 3
- Keep alive stream prematurely EOFs HOT 3
- Retry on typical errors solution
- Specifying content types for parts of a post request HOT 1
- Name Conflict HOT 5
- Copying from KEEP-ALIVE-STREAM: The value NIL is not of type STREAM HOT 7
- quickload build failure on Allegro Express 10.1, Windows 11 HOT 1
- Correct syntax for accessing Request Tracker rest api via token auth. HOT 2
- errors when *print-case* is :downcase HOT 2
- get: special chars in url string are not converted, results in 400 bad request HOT 1
- Document size of connection pool
- dex:post gives 415 unsupported media type HOT 2
- Error on POST requests: SSL_get_error: 5 HOT 2
- Adding kerberos authentication to dexador. HOT 1
- When specifying content-type for multipart/mixed, the value must be a string HOT 5
- Specifying multipart/form-data content type does not include the boundary in request headers HOT 6
- cookie parsing behave differently in windows HOT 6
- Windows build failure due to changes in static-vectors HOT 1
- Restarts IGNORE-AND-CONTINUE and RETRY-REQUEST are broken after bee5f13 commit HOT 4
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 dexador.