netty SSL trouble with gmail server base on securechat

maiziqing shuqinglee at gmail.com
Wed Dec 23 05:04:57 EST 2009


Hi, trustin, thank you very much!
The problem is resolved!


Trustin Lee wrote:
> 
> I tried to connect to imap.gmail.com:993 with the SecureChat client by
> myself and found that GMail IMAP server is known to be strict about the
> end-of-line markers.  Sending LF (\n) only doesn't work.  You have to send
> CRLF (\r\n).  After replacing '\n' with "\r\n" in the
> SecureChatClient.java, everything worked fine.  Hence, it's not a Netty
> problem - you made a mistake when you port your application from MINA to
> Netty.
> 
> 
> maiziqing wrote:
>> 
>> Following the IMAP4 protocol,
>> you can communicate withe the email server,
>> when the connection is established, firstly,there is a welcom message
>> from the email server,
>> and then we can send the login command: 001 login name passwd,then the
>> server can send successful response to us.
>> and then we just send the logout command: 002 logout,
>> then the problem appears: the email server will not send any response.
>> 
>> Are we need other handshake acts?
>> 
>> 
>> 
>> maiziqing wrote:
>>> 
>>> P.S. 
>>> I have implemented POP3 and IMAP4 protocol with netty, and the
>>> application takes less resources then MINA.
>>> 
>>> But when I use the MINA frame, the above problem does't exist.
>>> 
>>> 
>>> maiziqing wrote:
>>>> 
>>>> hi! trustin
>>>> 
>>>> Please help me with the following question, thank you very much! 
>>>> 
>>>> Based on the securechat example, I changed the host to
>>>> "imap.gmail.com", 
>>>> and the port listening on 993. I only made the two changes of the
>>>> securechat.
>>>> 
>>>> I can send one command, such as the login "001 login name passwd", and
>>>> the gmail server sends successful response to me. 
>>>> But when i send the second command, the sever does't send any response
>>>> to me. 
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/netty-SSL-trouble-with-gmail-server-base-on-securechat-tp4202372p4207940.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list