Fix comment/test for Mac getaddinfo() bug.

Note: the test case was broken because on Macintosh the client connects
synchronously. This is undesirable but ok for now.
v0.7.4-release
Ryan 2009-06-11 11:42:43 +02:00
parent 2a7a2f671a
commit f657a6324a
2 changed files with 5 additions and 2 deletions

View File

@ -184,7 +184,10 @@ Connection::Connect (const Arguments& args)
}
#ifdef __APPLE__
/* Bypass the thread pool and do it sync on this broken ass platform */
/* HACK: Bypass the thread pool and do it sync on Macintosh.
* Experiecing strange error where execution halts on
* getaddrinfo() and CPU goes to 100%. FIXME.
*/
eio_req *req = static_cast<eio_req*>(malloc(sizeof(eio_req)));
req->data = connection;
Connection::Resolve(req);

View File

@ -68,8 +68,8 @@ function onLoad() {
client.onEOF = function () {
};
client.connect(port);
assertEquals("closed", client.readyState);
client.connect(port);
}
function onExit () {