Triode wrote:
> What machine is this on? Can you explain the exact test cases.
>
> The code calls sleep(5) straight after the unable to connect debug line,
> and should then call connect again - I suspect this second call blocks,
> but I would expect it to time out after 30 seconds or so? It may be
> that the case you are testing needs to timeout the connect 5 times
> before it falls back to discovery mode. I'd like to understand what
> this case is.
The LMS server is a Pogoplug E02. The client is also a Pogoplug E02 and
a iMac (my desktop machine).
When I turned off my router yesterday and turned it back on, I couldn't
get the Pogoplug LMS server to get a different IP address. So I
manually went into the Pogoplug via SSH and put a static address there
and reboot.
When debug is enabled, this is what I see:
[11:57:41.008288] process_strm:219 strm command t
[11:57:41.008707] sendSTAT:151 STAT: STMt
[11:57:41.962553] slimproto_run:452 error reading from socket: closed
[11:57:42.063553] slimproto:701 unable to connect to server 0
[11:59:23.301771] slimproto:701 unable to connect to server 1
[11:59:31.311756] slimproto:701 unable to connect to server 2
[11:59:39.321779] slimproto:701 unable to connect to server 3
[11:59:47.331775] slimproto:701 unable to connect to server 4
[11:59:55.341781] slimproto:701 unable to connect to server 5
[12:00:00.342402] discover_server:631 sending discovery
[12:00:00.346464] discover_server:642 got response from: 10.0.1.7:3483
[12:00:00.347425] slimproto:711 connected
Last night just before I went to bed, I left the clients running (no
debug) and changed the server's IP. It won't connect even after 8 hrs
of waiting.
This morning, I changed the server's IP back to the one the clients
connected before, reboot the server and the clients connected
instantly!
So it seem when debug is off, the client is sitting on line 699:
if (connect(sock, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) <
0) {
Waiting indefinitely to connect to the server. Since debug is not on,
I don't know if the client sits there on the first connect or the second
connect after the 5 seconds sleep.
------------------------------------------------------------------------
Kuro's Profile: http://forums.slimdevices.com/member.php?userid=16701
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix