• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[solved] Re: Local webdav server freezes system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[solved] Re: Local webdav server freezes system


  • Subject: [solved] Re: Local webdav server freezes system
  • From: Kaspar Mösinger <email@hidden>
  • Date: Wed, 15 Nov 2006 20:36:28 +0100

Thank you Quinn!
I had a single-threaded application. I've changed it to a multi- threaded one and it works now perfectly (one thread for every socket).


Kaspar


On 15.11.2006, at 16:46, Quinn wrote:

At 14:50 +0100 15/11/06, Kaspar Mösinger wrote:
I'm writing a webdav-server with cocoa. When I connect with a remote computer to my server (using the Finder webdav-client), everything works as fine. But when I try to connect to my server on the same machine, it hangs completely. I don't access the filesystem in my server. Any hints?

It's very easy to deadlock in this sort of situation. What frameworks do you link your server with? If you link with GUI frameworks, you are likely to get into trouble. Even if you restrict yourself to the CoreServices layer, you can still run into deadlocks as the File Manager processes volume mount notifications. If you use runloop-based technologies to serve network requests (for example, you're using CFSocket to do your networking), it's a good idea to create a separate thread and do your networking there.


S+E
--
Quinn "The Eskimo!" <http://www.apple.com/ developer/>
Apple Developer Relations, Developer Technical Support, Core OS/ Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Local webdav server freezes system (From: Kaspar Mösinger <email@hidden>)
 >Re: Local webdav server freezes system (From: Quinn <email@hidden>)

  • Prev by Date: Re: SIGTRAP after writing to socket
  • Next by Date: Re: SIGTRAP after writing to socket
  • Previous by thread: Re: Local webdav server freezes system
  • Next by thread: Using the airport command line tool for joining a WPA network
  • Index(es):
    • Date
    • Thread