Your message dated Mon, 02 Apr 2007 18:47:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#239025: fixed in tsocks 1.8beta5-6
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: tsocks
Version: 1.8beta5-1.1
Severity: normal
Tags: patch

If the server just disconnects when tsocks expects a reply, tsock
will get stuck in an infinite busy loop.


--- tsocks-1.8.orig/tsocks.c    2002-03-13 14:02:04.000000000 +0100
+++ tsocks-1.8/tsocks.c 2004-03-20 11:30:57.000000000 +0100
@@ -951,14 +951,18 @@
    show_msg(MSGDEBUG, "Reading from server (expecting %d bytes)\n", 
conn->datalen);
    while ((rc == 0) && (conn->datadone != conn->datalen)) {
       rc = recv(conn->sockid, conn->buffer + conn->datadone, 
                 conn->datalen - conn->datadone, 0);
       if (rc > 0) {
          conn->datadone += rc;
          rc = 0;
+      } else if (rc == 0) {
+         show_msg(MSGDEBUG, "Peer has shutdown but we only read %d of %d 
bytes.\n",
+            conn->datadone, conn->datalen);
+         rc = ENOTCONN; /* ENOTCONN seems like the most fitting error message 
*/
       } else {
          if (errno != EWOULDBLOCK)
             show_msg(MSGDEBUG, "Read failed, %s\n", strerror(errno));
          rc = errno;
       }
    }
 


--- End Message ---
--- Begin Message ---
Source: tsocks
Source-Version: 1.8beta5-6

We believe that the bug you reported is fixed in the latest version of
tsocks, which is due to be installed in the Debian FTP archive:

tsocks_1.8beta5-6.diff.gz
  to pool/main/t/tsocks/tsocks_1.8beta5-6.diff.gz
tsocks_1.8beta5-6.dsc
  to pool/main/t/tsocks/tsocks_1.8beta5-6.dsc
tsocks_1.8beta5-6_i386.deb
  to pool/main/t/tsocks/tsocks_1.8beta5-6_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nico Golde <[EMAIL PROTECTED]> (supplier of updated tsocks package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 02 Apr 2007 20:08:32 +0200
Source: tsocks
Binary: tsocks
Architecture: source i386
Version: 1.8beta5-6
Distribution: unstable
Urgency: low
Maintainer: Tamas SZERB <[EMAIL PROTECTED]>
Changed-By: Nico Golde <[EMAIL PROTECTED]>
Description: 
 tsocks     - transparent network access through a SOCKS 4 or 5 proxy
Closes: 239025 240429
Changes: 
 tsocks (1.8beta5-6) unstable; urgency=low
 .
   * Integrated two patches by Peter Palfrader to fix
     an infinite loop if recv returns 0 and to intercept
     getpeername (Closes: #240429, #239025).
   * Removed everything except etc from dirs since
     the directories are created by Makefile.
Files: 
 6e8730ae1e8a0bebb3a7ca2a60acfe41 620 net optional tsocks_1.8beta5-6.dsc
 d55e0687205bac16c2d3b709247553bf 17688 net optional tsocks_1.8beta5-6.diff.gz
 26005b38ccd5553e0e18b94faf5a43f6 237500 net optional tsocks_1.8beta5-6_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGEUtwHYflSXNkfP8RAtICAJ41Tkhs7aq14LYNuBbBbjjY+OoMAQCfYvSt
vcQ3QEalv+yUp+uze0fRMF4=
=fM5/
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to