java socket input reading troubles

From: Mohamed Naoufel Ben Salah (Mohamed-Naoufel.Ben_Salah_at_alcatel.fr)
Date: 12/11/03

  • Next message: Danny Woods: "Re: java socket input reading troubles"
    Date: Thu, 11 Dec 2003 21:09:35 +0100
    
    

    Hi,
    I'm using java socket a client side,
    i have a server that sends data
    packets, I read, decode, .....

    I have trouble getting all the data sent by the server,
    what I receive is a sequence of packets 1,2,3 ...
    I receive 1 then 2 and when I read the next it is number
    4 or 5.

    I have no exceptions !

    how can it happen !!!

    can a matter of size/buffering mechanism .... make me
    avoid this ?

    (the server is "solid", and the data is really sent)

    thanks in advence.


  • Next message: Danny Woods: "Re: java socket input reading troubles"

    Relevant Pages

    • Re: Diagnose co-location networking problem
      ... it was from the client. ... Actually there's significant indication of lost packets and clues that ... 540 retransmit timeouts ... are you using any packetfiltering on the server? ...
      (freebsd-net)
    • Re: Improving FreeBSD NFS performance (esp. directory updates)
      ... >> I don't think the network is at fault, nor is the server really going ... 155645171 data packets ... discarded for bad header offset fields ... 790 connections established ...
      (freebsd-questions)
    • Re: IP Spoofing
      ... That would be enough if the purpose of the request was e.g. to delete a database by SQL injection. ... You would not need to keep it in 7 packets, merely to send in a TCP window - pretty large these days, BUT you would also need to cut in on an existing ESTABLISHED session. ... it is quite possible to send packets to the server without anything. ...
      (comp.lang.php)
    • Re: Problem with writing fast UDP server
      ... UDP packets per second. ... socket and threads. ... I wrote a simple case test: client and server. ... The maximum theoretical limit is 14,880 frames per ...
      (comp.lang.python)
    • Re: WORM? ... server generating NBT-NS (port 137) traffic on WAN interface
      ... server generating NBT-NS traffic on WAN ... I did run NETMON on the SBS2003 box, it did find the extraneous packets ... connected to the Internet (If the SBS server is the 2 NICs scenario). ... I would also like to suggest that you call Microsoft ...
      (microsoft.public.windows.server.sbs)