Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2905 > unrolled thread

how debug sockets

Started byxeon Mailinglist <xeonmailinglist@gmail.com>
First post2014-04-13 06:00 -0700
Last post2014-04-14 14:08 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.os.linux.networking


Contents

  how debug sockets xeon Mailinglist <xeonmailinglist@gmail.com> - 2014-04-13 06:00 -0700
    Re: how debug sockets gof@somewhere.invalid (Adam Wysocki) - 2014-04-14 13:15 +0000
      Re: how debug sockets Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-04-14 14:08 +0000

#2905 — how debug sockets

Fromxeon Mailinglist <xeonmailinglist@gmail.com>
Date2014-04-13 06:00 -0700
Subjecthow debug sockets
Message-ID<ef4e1391-8197-4f93-b97b-60c61398b1cf@googlegroups.com>
 I have a program that is trying to copy data between hosts. The connection happens, but the program can write remotely. I don't understand why it can`t write remotely giving me the error of 


java.net.SocketTimeoutException: 60000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/172.16.100.8:50010 remote=/172.16.100.14:44724]
    at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:164). 



how can I debug a socket to have more info about the reason why this is happening?

Is there bash commands or socket logs where I can look?

[toc] | [next] | [standalone]


#2906

Fromgof@somewhere.invalid (Adam Wysocki)
Date2014-04-14 13:15 +0000
Message-ID<gof.1397481282.6160@somewhere.invalid>
In reply to#2905
xeon Mailinglist <xeonmailinglist@gmail.com> wrote:

> how can I debug a socket to have more info about the reason why this is happening?
> 
> Is there bash commands or socket logs where I can look?

Try strace(1) or tcpdump(8).

AW

[toc] | [prev] | [next] | [standalone]


#2907

FromJorgen Grahn <grahn+nntp@snipabacken.se>
Date2014-04-14 14:08 +0000
Message-ID<slrnlknqu2.hu4.grahn+nntp@frailea.sa.invalid>
In reply to#2906
On Mon, 2014-04-14, Adam Wysocki wrote:
> xeon Mailinglist <xeonmailinglist@gmail.com> wrote:
>
>> how can I debug a socket to have more info about the reason
>> why this is happening?
>> 
>> Is there bash commands or socket logs where I can look?
>
> Try strace(1) or tcpdump(8).

Yes! Especially the combination strace /and/ tcpdump to you see both
the process view and the link layer view.

And in his case perhaps something Java-specific too. I got the feeling
from the (snipped) error messages that Java added something special to
the mix (IIRC it used the term "channel").

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .     .
\X/     snipabacken.se>   O  o   .

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.networking


csiph-web