473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

long delay sending via tcpip socket in .NET

Hi,
I have a connection which after an initial handshake has one way traffic.
I am sending bursty data. When I write a data buffer (variable size) the
last portion of it is not sent to the server until I start writing the next
buffer which may be 1/2/10/20/30 seconds later. Im using NetworkStream which
says it's unbuffered and Flush() is a no op. When I know I may not be sending
more data for a while how can I ensure that my data is flushed immediately?
The connection can not be closed (server constraint).
thanks,
-john

Aug 3 '05 #1
2 2307
hi john. sorry but this isnt a solution to your problem. i was wondering if
you had solved this problem or found a work around? i have been all over the
place finding a way to fix this with my program and you are the first person
to mention the same exact problem im going through.

"John Lemire" wrote:
Hi,
I have a connection which after an initial handshake has one way traffic.
I am sending bursty data. When I write a data buffer (variable size) the
last portion of it is not sent to the server until I start writing the next
buffer which may be 1/2/10/20/30 seconds later. Im using NetworkStream which
says it's unbuffered and Flush() is a no op. When I know I may not be sending
more data for a while how can I ensure that my data is flushed immediately?
The connection can not be closed (server constraint).
thanks,
-john

Oct 26 '05 #2
No unfortunately I didnt get any responses and I had to back burner this as
it was a startup time only problem and I had bigger issues to move on to. It
still take me 6-8 seconds to go through my little backand forth handshake
protocol before my comms are open for business. Maybe someday I'll get a
change to re-investigate this. Good luck and post if you figure it out in
the mean time :-)

"Kelly Morphis" wrote:
hi john. sorry but this isnt a solution to your problem. i was wondering if
you had solved this problem or found a work around? i have been all over the
place finding a way to fix this with my program and you are the first person
to mention the same exact problem im going through.

"John Lemire" wrote:
Hi,
I have a connection which after an initial handshake has one way traffic.
I am sending bursty data. When I write a data buffer (variable size) the
last portion of it is not sent to the server until I start writing the next
buffer which may be 1/2/10/20/30 seconds later. Im using NetworkStream which
says it's unbuffered and Flush() is a no op. When I know I may not be sending
more data for a while how can I ensure that my data is flushed immediately?
The connection can not be closed (server constraint).
thanks,
-john

Oct 27 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Brian Roberts | last post by:
I have a command line Python program that sometimes takes a bit (several minutes) to run. I want to provide an optional method for an impatient user (me!) to check the status of the program. The...
0
by: Tom Stepka | last post by:
Problem: We are experiencing an excessive (i.e. 16 - 20 seconds) delay when attempting to establish socket connection over the network, using the TcpLister.AcceptSocket() and...
2
by: John Lemire | last post by:
Hi, I have a connection which after an initial handshake has one way traffic. I am sending bursty data. When I write a data buffer (variable size) the last portion of it is not sent to the server...
18
by: Larry Herbinaux | last post by:
I'm having issues with garbage collection with my long-standing service process. If you could review and point me in the right direction it would be of great help. If there are any helpful...
3
by: TulasiKumar | last post by:
hi all, My requirment is i want to listen one perticular TCPIP port for one IPAddress,Wheneverver the data in coming to this port that data i will be save one text file..For...
1
by: CKane | last post by:
i am trying to build a "missed message" queue on a C# TCP server. many of the devices connecting are mobile and may drop out in bad signal areas. i want to store any messages missed for when they...
1
by: Jay | last post by:
I have a client app sending messages over the socket on a certain port. In the client app: I do this for every message I need to send: 1. Create a socket and connect. 2. Send message 3. Close...
2
by: beachdog | last post by:
I have built a web service consumer application by adding a web reference for a vendor-provided wsdl file. My client is interoperating with the server just fine, in terms of sending a request and...
9
by: =?Utf-8?B?U2hhdW5P?= | last post by:
I have a TCPIP socket providing data to my app. My app works on messages (not textual) with a predefined footer (eg 0x01 followed by 0x02) How should i go about buffering this and retrieving the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.