Menu

#20 -c problems

open
nobody
5
2005-02-03
2005-02-03
Anonymous
No

When using the -c, the socket seems to disconnect
prematurely as the amount of sent data changes with the
same file.
. ->8192
. ->16384
. ->24576
. ->32768
. ->40960
. ->49152
. ->57344
e -> The connection is reset by remote side
. ->1024
. ->9216
. ->17408
. ->25600
. ->33792
. ->41984
. ->50176
e -> The connection is reset by remote side
. ->1024
. ->9216
. ->17408
. ->25600
. ->33792
. ->41984
. ->50176
e -> The connection is reset by remote side

The file is 109942 bytes in size.. below is without the
-c when data blocks are received.

. ->1024
. ->9216
. ->17408
. ->25600
. ->33792
. ->41984
. ->50176
. ->58368
. ->66560
. ->74752
. ->82944
. ->91136
. ->99328
. ->107520
. ->109942

I'm using VB sockets to receive connection. Using lpr
-P to a jetdirect print seems ok with vb but not with
netcat..

Hope this info helps. any ideas?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I'm just wondering if you are closing the connection before
    the data was finished sending over the network. Could this
    be whats happening in code considering piping data into a
    code is faster than passing it over the network....?? just a
    thought.

     
  • George Vieira

    George Vieira - 2005-08-09

    Logged In: YES
    user_id=569371

    Tried the patch, still terminates early.

    I just did a simple

    netcat-0.7.1 # cat configure | src/netcat -c 10.10.0.69 9100

    and I lost around 6KB of bottom end of the file being sent.

    sent 316783
    recv 311296

     

Log in to post a comment.