History log of /haiku/src/preferences/mail/DNSQuery.h
Revision Date Author Comments
# 37f85698 11-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Fix race condition when start watching a mailbox and directly afterwards stop watching it. A BLooper was not suitable to synchronise start and stop watching. Wait till the IDLE command is send before returning the SyncAndStartWatchingMailbox method now. That ensures that a later StopWatchingMailbox call find the maibox in an expected watching state.

There is one thread (BLooper) to handle new commands and one watcher thread which is just listening at the server port for updates. The race condition occurred for example when a sync/watching and a fetch body message are send to the looper. The sync message just triggered the IDLE command in the watcher thread. In the meantime the fetch body command send a DONE command, because the IDLE command has not be send at this time the watcher keeps watching.

- fix int32 -> ssize_t thanks Axel and Stippi
- clean up



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40919 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c3a1b99c 10-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix gcc2 build.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40896 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6467e4b1 09-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix reading of compressed strings. This fixes #7266. Some clean up.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40895 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3e3735a8 08-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add some error checks. Fix memory leak in mx record list. Remove debug translation.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40880 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6d17af7e 27-Mar-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added some error checking to DNSQuery::GetDNSServers(), since it could fail.
Temporarily enabled debug to help with ticket #5655.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35970 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed6b5cc5 06-Apr-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Simplify the mail configuration.
- Introduce a database of known providers.
- Guess the mx server if the provider is not known.
- Guess default setting.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29969 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37f85698cf1a799e6f8857928b61ef7fb2de3eba 11-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Fix race condition when start watching a mailbox and directly afterwards stop watching it. A BLooper was not suitable to synchronise start and stop watching. Wait till the IDLE command is send before returning the SyncAndStartWatchingMailbox method now. That ensures that a later StopWatchingMailbox call find the maibox in an expected watching state.

There is one thread (BLooper) to handle new commands and one watcher thread which is just listening at the server port for updates. The race condition occurred for example when a sync/watching and a fetch body message are send to the looper. The sync message just triggered the IDLE command in the watcher thread. In the meantime the fetch body command send a DONE command, because the IDLE command has not be send at this time the watcher keeps watching.

- fix int32 -> ssize_t thanks Axel and Stippi
- clean up



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40919 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c3a1b99caf6e3df151fb942043efefbcb42ad40d 10-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix gcc2 build.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40896 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6467e4b16db3b7ea20ad588c6977a33bc14092e6 09-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix reading of compressed strings. This fixes #7266. Some clean up.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40895 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3e3735a84c5ac272b65cc53c0db718d933ac8d6c 08-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add some error checks. Fix memory leak in mx record list. Remove debug translation.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40880 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6d17af7e5e63481cab2e4d73f03c0813bab18da6 27-Mar-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added some error checking to DNSQuery::GetDNSServers(), since it could fail.
Temporarily enabled debug to help with ticket #5655.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35970 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed6b5cc571c142a5a5121998dee270a24e48b01e 06-Apr-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Simplify the mail configuration.
- Introduce a database of known providers.
- Guess the mx server if the provider is not known.
- Guess default setting.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29969 a95241bf-73f2-0310-859d-f6bbb57e9c96