You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Jochen Gazda (Commented) (JIRA)" <ji...@apache.org> on 2012/04/17 09:48:52 UTC

[jira] [Commented] (PROTOCOLS-95) Protocol dumper for debugging client-server issues

    [ https://issues.apache.org/jira/browse/PROTOCOLS-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255397#comment-13255397 ] 

Jochen Gazda commented on PROTOCOLS-95:
---------------------------------------

Ioan,

the way how Cyrus IMAP Server achieves the same goal might serve as an inspiration to us:
{quote}
As a debugging aid, Cyrus IMAP can also log protocol conversations on a per-user basis. Note that you cannot debug the authentication process using this, because the protocol logging is only associated with a username and until a user has been successfully authenticated, the username is unknown.

To enable protocol logging, simply create a directory in /var/lib/imap/log with the user's name you wish to log. Ensure, of course, that this directory is writable by the user Cyrus runs as. Cyrus will create files in this directory with the name of the process ID under which it runs (which changes per connection due to the forking server model it uses).
{quote}
http://nakedape.cc/info/Cyrus-IMAP-HOWTO/Cyrus-IMAP-HOWTO.html and CTRL-F "Protocol Logging"

I personally like the simplicity, how the wire logging can be turned on and off in Cyrus. 
Per-user basis is probably simpler to configure than per-session basis. (How can sessions be identified?)

Per-user or per-session is a must as the wire-dumping produces quite a lot of data.

I wonder if this wire logging is not already there in some form in netty? We are surely not the first ones who need this for a text based protocol.

                
> Protocol dumper for debugging client-server issues
> --------------------------------------------------
>
>                 Key: PROTOCOLS-95
>                 URL: https://issues.apache.org/jira/browse/PROTOCOLS-95
>             Project: JAMES Protocols
>          Issue Type: New Feature
>            Reporter: Ioan Eugen Stan
>            Assignee: Norman Maurer
>
> We need a protocol dumper to save the server-client messages maybe in a way that we can use them to build integration tests. 
> I'm thinking of mailbox-integration-test script files here that have "S:" and "C:" lines. This way we can easily add integration test cases that match real cases when we find them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org