Questions tagged [roundtrip]
64 questions
35
votes
1 answer
Nginx convert subdomain to path component without redirect
The idea is to take incoming requests to http://abc.example.com/... and rewrite them to http://example.com/abc/...
That's easy enough to do with a 301/302 redirect:
# rewrite via 301 Moved Permanently
server {
listen 80;
server_name…

accounted4
- 1,685
- 1
- 11
- 13
27
votes
1 answer
Go RoundTripper and Transport
I am having hard time understanding what we need RoundTripper for in Go.
https://golang.org/pkg/net/http/#RoundTripper
Explains the default Transport in Go:
var DefaultTransport RoundTripper = &Transport{
Proxy: ProxyFromEnvironment,
…
user2671513
21
votes
7 answers
batch http requests
Does anyone know a standard way to batch http requests?
Meaning - sending multiple http atomic requests in one round trip?
We need such mechanism in our REST API implementation for performance reasons. This kind of mechanism can reduce dramatically…

Shay Tsadok
- 913
- 1
- 7
- 26
12
votes
2 answers
Measuring the HTTP response time with requests library in Python. Am I doing it right?
I am trying to induce an artificial delay in the HTTP response from a web application (This is a technique used to do blind SQL Injections). If the below HTTP request is sent from a browser, response from the web server comes back after 3…

user1720897
- 1,216
- 3
- 12
- 27
7
votes
3 answers
What happens to char round-trip cast through a bool?
What does the C++ language definition promise about casting a char to bool then back to char again?
char original = 255;
bool next = original;
char final = next;
Also, what do most compilers do in this case beyond what the language guarantees?

WilliamKF
- 41,123
- 68
- 193
- 295
7
votes
2 answers
Plot RTT histogram using wireshark or other tool
I have a little office network and I'm experiencing a huge internet link latency. We have a simple network topology: a computer configured as router running ubuntu server 10.10, 2 network cards (one to internet link, other to office network) and a…

LucasBr
- 461
- 1
- 7
- 19
6
votes
2 answers
Generating JavaScript from a JSLINT parse tree
With Crockford's JSLINT, after calling JSLINT() to parse some JavaScript source, it provides access to the parse tree via JSLINT.tree
It would be really powerful to be able to analyse the tree, make structural changes to it based on the analysis and…

Daniel Earwicker
- 114,894
- 38
- 205
- 284
5
votes
2 answers
Round-trip time of AJAX v. Web Sockets
I would like to ask if I should expect some different round-trip time (sending some information to the server and recieving a response) when implemented with web sockets (message) compared to a standard HTTP GET. I assume that the web socket is…

tillda
- 18,150
- 16
- 51
- 70
5
votes
3 answers
Are there any tools that make keeping the UML models in-sync with the code completely seamless?
UML Round-Trip Engineering tools with seamless synchronization?
The Rational suite purports to do it. But it's so pricey and clunky at drawing (worse than the Rose days) that it's not in the reach of most departments.
What’s amazing is that the free…

Rubski
- 394
- 3
- 7
4
votes
1 answer
Measuring number of database calls per http request
Recently, our company is focusing on performance of the application we are developing for long time. One thing we noticed during performance test, certain methods are making so many database calls (over 500 queries)
Then this brings a question like,…

telli
- 363
- 3
- 14
4
votes
1 answer
Entity Framework: Execute multiple commands in one round trip
Situation
I have many parameterized SQL commands. I execute these commands one after the other in a loop and looks like this:
public void SaveChanges()
{
using (var ts = _Context.Database.BeginTransaction())
{
try
{
…

Michael
- 938
- 1
- 10
- 34
4
votes
1 answer
Howto ignore unknown types with DataContractSerializer
I try to use DataContractSerializer in my application in order to be backward and forward compatible and to support round trip (if possible).
Is it possible to support round trip, or if not, is it possible to just ignore unknown types in the…

MTR
- 1,690
- 3
- 20
- 47
3
votes
6 answers
jEditable: Display Option Text (and not Value) after submit
I'm using jEditable on a Select list. It works beautifully, except for the following issue. jEditable displays in place whatever a server posts back after a submit. That works great for text boxes etc. where you can simply post the submitted value…

Alex
- 75,813
- 86
- 255
- 348
3
votes
1 answer
Lua script in Redis: HMGET with table?
Does any similar behaviour to passing a table to a single redis.call('HMGET',[key],...) exist, rather than looping through the table and running multiple redis.call, one after another?
I have a hash key in Redis that represents a Fenwick tree with…

concat
- 3,107
- 16
- 30
3
votes
1 answer
Get actual roundtrip-time in browser using JavaScript
A simple method to measure the roundtip-time of an Ajax request is to measure the time between the start and the end of a request (readyState 4). Many examples exist for this kind of measuring.
But this measurement is not really accurate. The Ajax…

ppa
- 326
- 1
- 4