Re: CFSocket freezes [solved]
Re: CFSocket freezes [solved]
- Subject: Re: CFSocket freezes [solved]
- From: Frank Illenberger <email@hidden>
- Date: Mon, 28 Nov 2005 20:35:57 +0100
Yesterday, I completely rewrote my network layer, dumping
AsyncSockets in favour of a pure CFSocket implementation, that only
uses asynchronus accepting and reading on my worker threads, and does
synchronous writing. AsyncSockets relies on asynchronous writing -
the part which seems to be buggy in Apples implementation. Writing
synchronously does not matter in my case, because I have separate
threads for it.
Now, the freezing problem is completely gone and as a bonus, the
average response time of my server went down from 8ms to 1.3ms!
Thank you for your tips.
Cheers
Frank
On 27.11.2005, at 21:21, Uli Kusterer wrote:
Am 27.11.2005 um 16:15 schrieb Felix Schwarz:
Have you had a look at the CocoaHTTPServer sample code? I had a
brief look at it the other day out of interest and could not
establish a connection to it, either, although the propagation of
the service as such via Bonjour worked for me. This is on 10.4.3
as well. Maybe it's related.
It worked for me. It just has the document root at / and doesn't
default to index.htm, so you have to enter a valid document's URL
to get a reply.
Also note that there's a bug in the TCPServer class where it
checks for a different method name than it actually calls (filed as
rdar://problem/4339256). The sample doesn't have a problem with
that, but if you want to use it in your own code with a delegate,
you will want to fix that.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden