473,387 Members | 1,892 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.

custom handlers & dumb question

Hi,

Apologies if this isn't the correct forum. I am writing a communication
solution (actually on the Compact Framework) based on HttpWebRequests
hooking up with custom handlers on the server side. My dumb question is
this: how reliable is http? For example if I use PUT and call GetResponse on
my request object with no problem, can I guarantee that every byte of my
file will always arrive at the web server?

I know this sounds stupid but I just want to be sure, obviously I could
append the byte count to the end of the file and have my custom handler
check it against the incoming byte stream and maybe respond with an ACK or
NACK. My thinking is that this is all handled at TCP/IP level and http is
100% reliable but I just wanted reassurance!

Thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
Nov 19 '05 #1
4 1308
tcp unlike udp is a reliable transport. this means every packet sent get an
acknowledgement, so if you can trust the status of a send (no need for own
ACK/NAK). with http, you should also check the return status, to know if the
PUT worked.

tcp has limited retry logic, so a PUT can often fail, but your packet send
will fail.

note: you can get false failures, where the put was actually sucessfully
processed by the server, but the client did not get an acknowledgment back
(iis buffering may prevent the server code from seeing this condition).
-- bruce (sqlwork.com)
"Stelrad Doulton" <___@____.com> wrote in message
news:%v*****************@newsfe3-gui.ntli.net...
| Hi,
|
|
|
| Apologies if this isn't the correct forum. I am writing a communication
| solution (actually on the Compact Framework) based on HttpWebRequests
| hooking up with custom handlers on the server side. My dumb question is
| this: how reliable is http? For example if I use PUT and call GetResponse
on
| my request object with no problem, can I guarantee that every byte of my
| file will always arrive at the web server?
|
|
|
| I know this sounds stupid but I just want to be sure, obviously I could
| append the byte count to the end of the file and have my custom handler
| check it against the incoming byte stream and maybe respond with an ACK or
| NACK. My thinking is that this is all handled at TCP/IP level and http is
| 100% reliable but I just wanted reassurance!
|
|
|
| Thanks
|
|
| ---
| Outgoing mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
|
|
Nov 19 '05 #2
Cheers Bruce,

That was exactly what I was after!

I have about 2 days experience with IIS, is there any configuration I can do
reduce the false failues, or should I just be prepared to handle resubmits
as gracefully as possible?

"bruce barker" <no***********@safeco.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
tcp unlike udp is a reliable transport. this means every packet sent get
an
acknowledgement, so if you can trust the status of a send (no need for own
ACK/NAK). with http, you should also check the return status, to know if
the
PUT worked.

tcp has limited retry logic, so a PUT can often fail, but your packet send
will fail.

note: you can get false failures, where the put was actually sucessfully
processed by the server, but the client did not get an acknowledgment back
(iis buffering may prevent the server code from seeing this condition).
-- bruce (sqlwork.com)
"Stelrad Doulton" <___@____.com> wrote in message
news:%v*****************@newsfe3-gui.ntli.net...
| Hi,
|
|
|
| Apologies if this isn't the correct forum. I am writing a communication
| solution (actually on the Compact Framework) based on HttpWebRequests
| hooking up with custom handlers on the server side. My dumb question is
| this: how reliable is http? For example if I use PUT and call
GetResponse
on
| my request object with no problem, can I guarantee that every byte of my
| file will always arrive at the web server?
|
|
|
| I know this sounds stupid but I just want to be sure, obviously I could
| append the byte count to the end of the file and have my custom handler
| check it against the incoming byte stream and maybe respond with an ACK
or
| NACK. My thinking is that this is all handled at TCP/IP level and http
is
| 100% reliable but I just wanted reassurance!
|
|
|
| Thanks
|
|
| ---
| Outgoing mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
|
|

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
Nov 19 '05 #3
you have to handle resubmits. i usually use a transaction guid.

-- bruce (sqlwork.com)

"Stelrad Doulton" <___@____.com> wrote in message
news:eT*****************@newsfe3-gui.ntli.net...
| Cheers Bruce,
|
| That was exactly what I was after!
|
| I have about 2 days experience with IIS, is there any configuration I can
do
| reduce the false failues, or should I just be prepared to handle resubmits
| as gracefully as possible?
|
| "bruce barker" <no***********@safeco.com> wrote in message
| news:uZ**************@TK2MSFTNGP10.phx.gbl...
| > tcp unlike udp is a reliable transport. this means every packet sent get
| > an
| > acknowledgement, so if you can trust the status of a send (no need for
own
| > ACK/NAK). with http, you should also check the return status, to know if
| > the
| > PUT worked.
| >
| > tcp has limited retry logic, so a PUT can often fail, but your packet
send
| > will fail.
| >
| > note: you can get false failures, where the put was actually sucessfully
| > processed by the server, but the client did not get an acknowledgment
back
| > (iis buffering may prevent the server code from seeing this condition).
| >
| >
| > -- bruce (sqlwork.com)
| >
| >
| > "Stelrad Doulton" <___@____.com> wrote in message
| > news:%v*****************@newsfe3-gui.ntli.net...
| > | Hi,
| > |
| > |
| > |
| > | Apologies if this isn't the correct forum. I am writing a
communication
| > | solution (actually on the Compact Framework) based on HttpWebRequests
| > | hooking up with custom handlers on the server side. My dumb question
is
| > | this: how reliable is http? For example if I use PUT and call
| > GetResponse
| > on
| > | my request object with no problem, can I guarantee that every byte of
my
| > | file will always arrive at the web server?
| > |
| > |
| > |
| > | I know this sounds stupid but I just want to be sure, obviously I
could
| > | append the byte count to the end of the file and have my custom
handler
| > | check it against the incoming byte stream and maybe respond with an
ACK
| > or
| > | NACK. My thinking is that this is all handled at TCP/IP level and http
| > is
| > | 100% reliable but I just wanted reassurance!
| > |
| > |
| > |
| > | Thanks
| > |
| > |
| > | ---
| > | Outgoing mail is certified Virus Free.
| > | Checked by AVG anti-virus system (http://www.grisoft.com).
| > | Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
| > |
| > |
| >
| >
|
|
| ---
| Outgoing mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
|
|
Nov 19 '05 #4
Never heard of this strategy!! Is there a sample somewhere you could point
me to?

Cheers

"bruce barker" <no***********@safeco.com> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
you have to handle resubmits. i usually use a transaction guid.

-- bruce (sqlwork.com)

"Stelrad Doulton" <___@____.com> wrote in message
news:eT*****************@newsfe3-gui.ntli.net...
| Cheers Bruce,
|
| That was exactly what I was after!
|
| I have about 2 days experience with IIS, is there any configuration I
can
do
| reduce the false failues, or should I just be prepared to handle
resubmits
| as gracefully as possible?
|
| "bruce barker" <no***********@safeco.com> wrote in message
| news:uZ**************@TK2MSFTNGP10.phx.gbl...
| > tcp unlike udp is a reliable transport. this means every packet sent
get
| > an
| > acknowledgement, so if you can trust the status of a send (no need for
own
| > ACK/NAK). with http, you should also check the return status, to know
if
| > the
| > PUT worked.
| >
| > tcp has limited retry logic, so a PUT can often fail, but your packet
send
| > will fail.
| >
| > note: you can get false failures, where the put was actually
sucessfully
| > processed by the server, but the client did not get an acknowledgment
back
| > (iis buffering may prevent the server code from seeing this
condition).
| >
| >
| > -- bruce (sqlwork.com)
| >
| >
| > "Stelrad Doulton" <___@____.com> wrote in message
| > news:%v*****************@newsfe3-gui.ntli.net...
| > | Hi,
| > |
| > |
| > |
| > | Apologies if this isn't the correct forum. I am writing a
communication
| > | solution (actually on the Compact Framework) based on
HttpWebRequests
| > | hooking up with custom handlers on the server side. My dumb question
is
| > | this: how reliable is http? For example if I use PUT and call
| > GetResponse
| > on
| > | my request object with no problem, can I guarantee that every byte
of
my
| > | file will always arrive at the web server?
| > |
| > |
| > |
| > | I know this sounds stupid but I just want to be sure, obviously I
could
| > | append the byte count to the end of the file and have my custom
handler
| > | check it against the incoming byte stream and maybe respond with an
ACK
| > or
| > | NACK. My thinking is that this is all handled at TCP/IP level and
http
| > is
| > | 100% reliable but I just wanted reassurance!
| > |
| > |
| > |
| > | Thanks
| > |
| > |
| > | ---
| > | Outgoing mail is certified Virus Free.
| > | Checked by AVG anti-virus system (http://www.grisoft.com).
| > | Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
| > |
| > |
| >
| >
|
|
| ---
| Outgoing mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
|
|

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
Nov 19 '05 #5

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

Similar topics

192
by: Kwan Ting | last post by:
The_Sage, I see you've gotten yourself a twin asking for program in comp.lang.c++ . http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1 If you the oh so mighty...
3
by: Shane | last post by:
I am trying to create a custom command bar with three custom buttons, however when I try to make the procedure there is no "CommandBar" option to choose from and is not recognized for the...
6
by: Flare | last post by:
Hi i just read: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/exceptdotnet.asp Wich is interesting reading by the way. But. I have'nt used exception very much to...
0
by: buzz | last post by:
I am new to ASP.NET, so perhaps this is problem will yield a simple answer. I am building an ASP.NET application using asynchronous handlers (IHttpAsyncHandler). In doing so, it was recommended...
4
by: Peter Oliphant | last post by:
I've upgraded my code to VS C++.NET 2005 (Express) using /clr pure. My question is, why is there an exception to the rule in how pointer syntax is done in the event handlers? For example, why is...
6
by: Gaz | last post by:
Hi guys. I've been lookig for this in the numpy pdf manual, in this group and on google, but i could not get an answer... Is there a way to create a custom data type (eg: Name: string(30), Age:...
13
by: pamelafluente | last post by:
Hello. I have written the following code (this code is on a control): Sub InitSomething() mSet(me.FindForm) End Sub Sub mSet(ByVal f As Control) For Each t As Control In f.Controls If...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
3
by: Lowell Alleman | last post by:
Here is the situation: I wrote my own log handler class (derived from logging.Handler) and I want to be able to use it from a logging config file, that is, a config file loaded with 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.