본문으로 건너뛰기

이메일 #076 - #080

원본 출처: Satoshi - Sirius emails 2009-2011

이메일 #076

Date: Thu, 12 Nov 2009 05:36:06 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: Linux - linux-0.1.6-test3
To: Liberty Standard <[email protected]>
Cc: Martti Malmi <[email protected]>

영어 원문

Right now (04:50 GMT) my node is connecting to yours and getting zombie 
connections each time. The socket isn't returning an error, just zombie
without notice. If you're running the linux build right now, it would
be interesting to see what the log says on your side.

test3:

I've added specific code to detect zombie sockets. It'll detect if the
socket hasn't sent or received any data within 60 seconds of connecting,
and detect if data is queued to send and hasn't sent for 3 minutes.

I think I may have weakened the reconnect speed in test2. In test3 I'm
making it more determined to reconnect quickly.

I added checking to track whether other nodes received your generated
blocks. If none did, it'll warn you in the description:
"Generated - Warning: This block was not received by any other nodes and
will probably not be accepted!"

The status can go to "#/offline?" for blocks or transactions you create
if they don't get out to any other nodes.

With all this, it should be impossible not to notice as soon as it
screws up. It should hopefully disconnect all the zombie sockets.
After that, whether it's able to make some good connections, or sockets
is completely hosed and it stays at 0 connections, I don't know.

If this doesn't work, I guess I'll look at the sourcecode of some other
P2P apps like BitTorrent and see how they deal with this stuff. Maybe
there's some magic flag or procedure to bash the sockets system back to
life.

File linux-0.1.6-test3.tar.bz2 attached in the next message.


Liberty Standard wrote:
> On Wed, Nov 11, 2009 at 8:08 AM, Liberty Standard
> <[email protected] <mailto:[email protected]>> wrote:
>
> My network connection is direct to my computer. My ISP requires that
> I run VPN to connect to the Internet. I then have a second NIC that
> shares my Internet with other devices. My IP address while using my
> computer is my actual IP address, but the devices connected through
> my second NIC use NAT. When I connect through a virtual machine,
> that also uses NAT. All this requires very little configuration.
> NetworkManager in Ubuntu has an option to share my Internet
> connection through the second NIC and VirtualBox has the option to
> use NAT.
>
> I lost a couple packs of bitcoins again, so that problem is not yet
> fixed. It's a bit more bearable now that I have an idea of what is
> going on. I figure for now I'll just restart bitcoin whenever I see
> a pack of bitcoins starting to mature. I may go back and forth a bit
> between Linux and Wine, but I'll definitely test every new version
> that comes out. At the moment I'm still running the Linux build.
>
>
>
> On Wed, Nov 11, 2009 at 7:49 AM, Satoshi Nakamoto <[email protected]
> <mailto:[email protected]>> wrote:
>
> Thanks. The log didn't stop on anything special, just simple
> message passing. Chances are it's UI related. Most of the
> initial bugs were all UI.
>
> What brand/model of firewall do you have? It's possible for
> BitTorrent to overwhelm the number of connections some models
> can handle. Most are underpowered and flaky under load.
>
> NewLibertyStandard wrote:
>
> I have been getting your attachments just fine. I just
> thought I'd spare Martti the large attachment.
>
> I am not able to reproduce the bug. I don't know whether the
> paste, the blocks finishing, a combination of the two or
> something else entirely caused the fault.
>
> ...
>
> But after they started
> downloading, I took a look a look at my BitTorrent
> client, and
> sure enough, I had forgotten about a torrent and my
> upload was
> quite high, at the limit I had set for it.
>
>
>
>
>

이메일 #077

Date: Thu, 12 Nov 2009 05:37:58 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: linux-0.1.6-test3.tar.bz2 attached
To: Liberty Standard <[email protected]>
Cc: Martti Malmi <[email protected]>

영어 원문

File linux-0.1.6-test3.tar.bz2 attached

linux-0.1.6-test3.tar.bz2 12,143,473 bytes

이메일 #078

Date: Thu, 12 Nov 2009 23:39:44 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: linux-0.1.6-test5 fix for zombie sockets
To: Liberty Standard <[email protected]>
Cc: Martti Malmi <[email protected]>

영어 원문

test 5:

I added MSG_DONTWAIT to the send and recv calls in case they forgot the
socket is non-blocking. If that doesn't work, there's now the catch-all
solution: another thread monitors the send/recv thread and terminates
and restarts it if it stops. It prints "*** Restarting
ThreadSocketHandler ***" in debug.log, and an error message displays on
the status bar for a while.

Before terminating, it tries closing the socket that's hung. If that
works, it doesn't have to resort to terminating.

I ran a test where it terminated the thread about 1000 times without
trouble, so it should be safe. The terminate on linux is
pthread_cancel, which throws it into C++'s exception handler.

The thread calls we were using didn't have terminate, so I created our
own wrappers in util.h to use CreateThread on windows and pthread_create
on linux, instead of:
_beginthread is windows only and lacks terminate
boost::thread is really attractive, but lacks terminate
wxThread requires you to create a class for every function you might
call (yuck)

File attached in the next e-mail

이메일 #079

Date: Thu, 12 Nov 2009 23:42:29 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: linux-0.1.6-test5.tar.bz2 attached
To: Liberty Standard <[email protected]>
Cc: Martti Malmi <[email protected]>

영어 원문

12,033,918 linux-0.1.6-test5.tar.bz2

이메일 #080

Date: Sat, 14 Nov 2009 05:46:22 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: Zetaboards forum
To: Martti Malmi <[email protected]>

영어 원문

I created a forum on Zetaboards, InvisionFree's new site that they're 
migrating to.

http://s1.zetaboards.com/Bitcoin/index/

I made an admin account you can use to upgrade your own account to admin:
u: admin
pw: B98VzUUA

BTW, the admin pages have a huge blank space at the top, you have to
scroll down.

It doesn't support SSL, but none of them do. I replaced the ugly
default orange and blue theme with the Frostee theme, which was the only
decent looking theme I could find after extensive searching. Searching
for themes is futile, there are thousands of rubbish themes. It turns
out the solution is to look at button sets instead
(http://resources.zetaboards.com/forum/1000328/)

I only created two subforums to begin with. I'll create new ones as the
need arises. I like to start with a flat namespace until there's enough
items to justify subsections. Technical Support makes sense as a
separate section to get that stuff out of the main spotlight so our
dirty laundry isn't in everyone's face, and to make people feel more
free to report bugs there. Mostly only devs and people checking on a
bug need read the Technical Support section.
링크 복사하기X에 공유페이스북에 공유쓰레드에 공유