Questions tagged [sendasynchronousrequest]
100 questions
2
votes
1 answer
How to make send() call asynchronous?
Server is running as nc -l 1234
Below is the client that is not blocked on recv() using event loop's select() call.
client.py
import socket
import sys
from eventloop import EventLoop
class Connection():
def __init__(self):
self.sock =…

overexchange
- 15,768
- 30
- 152
- 347
2
votes
1 answer
How to throttle Grequests when making asynchronous API calls?
I am using the grequests library to pass ~250000 urls to get data from an api.
The API has a limit of 100 calls per second.
How do I throttle the grequests to only pass in 100 urls per second? I increased the size parameter from 5 to 100. Not sure…

RustyShackleford
- 3,462
- 9
- 40
- 81
2
votes
2 answers
How to wait function call return value before go to the next line in angular js
I have two functions is_exist() and save() functions.
In save function I calls is_exist() function before performing a save.it return boolean value.
but my problem is save() function is not wait until is_exist() function to return the value.after…

user6900333
- 31
- 3
2
votes
1 answer
Async requests in guzzlephp (or php-ga-measurement-protocol)
Does anyone know how to send a working and non-blocking async request using guzzlephp?
There seems to be a support for this but it does not seem to be implemented
guzzle->requestAsync('post', 'http://', ['synchronous' =>…

Borko Rastović
- 76
- 7
2
votes
2 answers
MPI_Isend: how to keep data safe until they're received?
I'm to send many messages using MPI_Isend, but I'm not sure how to ensure my data are safe until they are received, and at the same time, do not use up all available mem.
Currently, I'm doing something like this:
vector…

0x56794E
- 20,883
- 13
- 42
- 58
2
votes
2 answers
consuming web service during splash screen in swift
I am new in ios swift ,
how can I fetch data from webservice during splash screen time ,
In other words I want to make splash screen still appear until the app finish fetching data.
I tried put NSURLConnection.sendAsynchronousRequest function in…

Saeed Alasiry
- 322
- 5
- 23
2
votes
2 answers
sendAsynchronousRequest says that it finds nil when unwrapping an optional value
This is the part of my code that crashes:
let bodyData = "username=" + username + "&password=" + password
let URL: NSURL = NSURL(string: "URL OF A PHP FILE")!
let request:NSMutableURLRequest = NSMutableURLRequest(URL:URL)
request.HTTPMethod =…

Clément Bisaillon
- 5,037
- 8
- 32
- 53
2
votes
0 answers
NSURLConnection sendAsynchronousRequest wait time in iOS
I am using NSURLConnection sendAsynchronousRequest to fetch some data from the web server. The issue is sometimes I am able to fetch the data and some times NULL is returned from the web server. When I looked in to the server logs, it has sent the…

Timothy Rajan
- 1,947
- 8
- 38
- 62
2
votes
1 answer
Populating class from json data
I have a WCF that returns some json data in the format of:
{
"RetrieveLocationsResult": [
{
"Address": "106 Mullaghboy Road",
"Category": "Tarmac",
"Closest_Property_Number": 106,
"ID": 33,
"Image1": 1234,
…

Karl
- 45
- 7
1
vote
0 answers
How to create Asynchronous Camel-kafka consumer?
I have a route in camel to consumer from kafka. It is consuming and producing with a TPS of 2000 if the incoming message is 18000 TPS. so the consumer topic has consumer lag. If I keep max.poll.recors = 500 i'm able to achieve 2000 TPS. If I keep…

driven_spider
- 495
- 4
- 16
1
vote
1 answer
Facing an issue with NSURLSessionDataTask with SynchronousRequest in objective-c
Here is my working code with NSURLConnection sendSynchronousRequest :
+ (Inc*)getData:(NSString*)inUUID {
NSString* urlString = [NSString stringWithFormat:@"/inc/%@", incUUID];
NSURLRequest* request = [[HttpRequest…

Mihir Oza
- 2,768
- 3
- 35
- 61
1
vote
1 answer
Technologies and design for asynchronous processes in java
I am currently developing an application under a Restfull architecture with Java. I encountered a very big problem during the interactions between my web rest service, another web service soap and the android client.
After several tests, I realized…

FiokoSoft
- 67
- 1
- 10
1
vote
2 answers
Android HTTP: Make more than 1 asynctask request
I followed this post to set up an Http Async Request: HttpRequest
So, now, I call: new DownloadTask().execute("http://www.google.com/");
to make this request.
How can I manage different calls? For example:
new…

img.simone
- 632
- 6
- 10
- 23
1
vote
0 answers
iOS google reverse geocode not working properly
For reverse geocoding am using the following method,
[api getRequest:[NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/geocode/json?latlng=%f,%f&key=%@&language=%@",latV,lonV,kGoogleAPIKey,@"en"] withCompletionHandle:^(NSData *data)…

satheesh
- 2,770
- 2
- 14
- 19
1
vote
1 answer
Asynchronous service with Spring boot
I'm trying to run a basic Async service using springboot.
I'm getting an Exception while invoking the request. Not sure why it is happening, I have used all the instructions and code snippets from oracle website and jersey website. Is there anything…

Vishal Desai
- 317
- 1
- 6
- 14