[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange problem wiht s_client on solaris



Hi,

this is not strictly imap-related, but i hope that it has some
relation to this list, and i have a chance to get help :-)

i'm trying to run nnimap over ssl.

i've built SSLeay-0.9.0b on solaris 2.5.1 using gcc 2.8.1
# uname -a
SunOS cache 5.6 Generic_105181-12 sun4u sparc SUNW,Ultra-4

some (small) mail messages are fetched well every time, but some
longer messages are not fetched fully: the *imap-log* buffer contains
a part of a message which was fetched, and stays "sleeping" in this
state forever. i first thought that this is a bug in nnimap, but it
appears to be a bug in s_client.

i tried to connect to the imap server manually:

video:~$ /usr/local/bin/s_client -ssl3 -connect info.vsu.ru:993
[ssl stuff skipped]
* OK Domino IMAP4 Server Release 4.6.3 (Intl) ready Wed, 24 Mar 1999 12:01:16 +0300
1 LOGIN vvv my-pass-word
1 OK LOGIN completed
2 SELECT lotus.other
* 28 EXISTS
* 0 RECENT
* OK [UNSEEN 5] Message 5 is first unseen
* OK [UIDVALIDITY 1] UIDs valid
* FLAGS (\Flagged \Seen \Answered \Deleted \Draft)
2 OK [READ-WRITE] SELECT completed
3 UID FETCH 2 (RFC822.PEEK)
* 2 FETCH (RFC822 {659}
From: Martin <Martin.Schaupp@l-bank.de>
Date: Tue, 23 Mar 1999 20:29:33 +0300
To: squid list <squid-users@ircache.net>
Subject: squid without dns-server
Message-ID: <741D24492F07062EC325673D006016AA.0060170CC325673D@vsu.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit



Hi,

Our squid is only used for caching and authenticating the users. He
gives any request
to his parent cache_peer (our firewall). At the moment a dns-proxy is
running on the
firewall only to serve the cache. Can I prevent  the squid-cache from
sending
dns-request to the firewall ?

Thanks in advance

Martin

 UID 2)
3 OK FETCH completed
4 UID FETCH 3 (RFC822.PEEK)
* 3 FETCH (RFC822 {2666}
Received: from ns.vsu.ru ([62.76.169.12]) by info.vsu.ru (Lotus SMTP MTA v4.6.3  (733.2 10-16-1998)) with SMTP id C325673D.0061B97E; Tue, 23 Mar 1999 20:47:24 +0300
Received: from vic20.globalcom.se (IDENT:majordomo@vic20.globalcom.se [195.84.148.62])
        by ns.vsu.ru (8.9.1/8.9.1) with ESMTP id UAA02300
        for <vvv@vsu.ru>; Tue, 23 Mar 1999 20:46:03 +0300
Received: (from majordomo@localhost)
        by vic20.globalcom.se (8.8.7/8.8.7) id SAA07705
        for nnimap-list; Tue, 23 Mar 1999 18:44:22 +0100
Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42])
        by vic20.globalcom.se (8.8.7/8.8.7) with ESMTP id SAA07699
        for <nnimap@extundo.com>; Tue, 23 Mar 1999 18:44:20 +0100
Received: from ramses.cs.uni-dortmund.de (ramses.cs.uni-dortmund.de [129.217.20.180]) by waldorf.cs.uni-dortmund.de  with SMTP id SAA11127; Tue, 23 Mar 1999 18:40:10 +0100 (ME
T)
Received:  (grossjoh@localhost)
        by ramses.cs.uni-dortmund.de id SAA19261; Tue, 23 Mar 1999 18:40:09 +0100
To: J^C
video:~$ 
</#part>

Here the last fetched of message #3 line contained "To: J", and i
pressed C-c to break. What could be noted is:

* without ssl (via telnet to port 143) all works fine: messages are
  sent fully

* the place where the "hang" occurs is always the same (!), i.e. if i
  will try to fetch other mails (which do not "hang"), and then try to
  fetch the "bad" mail, the hang will ocuur at the very same line and
  at the very same character.

* this is not really a "hang" because if i input some IMAP command at
  that place, the server sends me the rest of the "hanged" message,
  and starts to execute the new command (which may or may not hang).

  e.g. if i input "10 FETCH 2 (RFC822.PEEK)", the server will send me
  the rest of the message #3 and then send me the message #2.

  if i input "10 FETCH 3 (RFC822.PEEK)", the server will send me the
  rest of the message #3 and then send me part of the message #3, and
  again hang the same line.

  if i input "10 LOGOUT", the server will send me the rest of the
  message #3 and then disconnect.

this looks like a buffer problem. Did anyone see something like this?

Thanks in advance for your help, and thanks a lot for your great work.