Comments (1)
Adding some notes for future me or whoever gets a chance to tackle this first:
The CouchDB server is started via an NSTask with pipe notifications registered on the main thread's run loop. Still paging Cocoa stuff back into the front of my mind, but based on some comments on a thread I found (http://www.cocoabuilder.com/archive/cocoa/284820-problem-with-reading-an-nspipe-nsfilehandle-to-end.html, "When you invoke -readInBackgroundAndNotify, there is a run loop source installed on the run loop associated with the current thread. That is, if you invoke -readInBackgroundAndNotify on a background thread, the run loop source is installed on the background thread's run loop.") the solution may be as simple as registering for the data notifications via a background thread that subsequently starts polling its own run loop. When a data event comes in, we can pull that data from the system pipe buffer (which is probably the "finite queue" we are seeing CouchDB act as if it has) and send it off via a performSelector to the main thread's run loop (which will retain the data until it is gotten to).
from couchdbx-core.
Related Issues (20)
- running 'all tests' on CouchDBX 0.11 fails at 'oauth' and then requires admin password ? HOT 7
- CouchDBX (10.6) application launches with empty screen on 10.6.1 Core Duo machine. HOT 6
- Snow Leopard on 32 bit machine HOT 2
- changing require_valid_user from false to true renders couchdb useless HOT 1
- Easier reloads
- Why is the Snow Leopard release on R13B02 and the Leopard release on R13B03? HOT 3
- CouchDBX 0.10.1-R13B02 running test suite hangs on OS X 10.6.2 HOT 7
- longpoll not working ? HOT 1
- CouchDB 0.11 - Test suite results HOT 5
- mac 0.11.0-R13B04. fails to start - transient error HOT 1
- Quirky behaviour after running (failing) test suite
- CouchDBX-0.10.1-R13B03-Leopard.app is crashing under load HOT 4
- CouchDBX 1.0.0.10 crashes on Snow Leopard HOT 2
- CouchDBX not starting on Snow Leopard HOT 4
- CouchDBX Test Suite hangs on 'attachments', check for updates is unavailable
- FAQ: whereis local.ini? HOT 1
- Erlang src mirror doesn't exist anymore
- Snow leopard download link doesn't work HOT 1
- Cahnge embedded browser URL to match couchdb config settings
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 couchdbx-core.