Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37661 20 d 9 h amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/client/ Fix trunk: RestClient was left behind by r37655

r37655 deleted MandiiResponse but omitted RestClient from the commit, so
trunk did not compile - RestClient still imported the deleted class.

RestClient now uses RawHttpResponse: executeMandii is renamed executeRaw and
postWithResponse returns the new type. The dead getMandii helper is removed;
its only caller was MandiiService.
 
37388 43 d 10 h vikas /trunk/ Whatsapp Apis  
37359 48 d 6 h amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/client/ ICICI proposal read timeout: add insurance-issuance HTTP config + shared transport-failure classifier

The default RestClient carries a 10s socket timeout, sized for quick lookups. ICICI's
gadget proposal endpoint underwrites and issues the policy synchronously and needs
longer; abandoning the read discards the only response carrying the policy and
proposal numbers for a policy that is already live at the insurer.

- HttpClientFactory.insuranceIssuanceRequestConfig(): connect 5s, socket 45s. Not
slowRegulatorRequestConfig() - its contract forbids request-thread use with an open
transaction, which is exactly the ICICI call site.
- HttpTransportFailures: cause-chain check separating 'the call never completed' from
'the remote said no'. Needed because RestClient rewraps transport errors as
RuntimeException(GE_1006), so the top-level exception type is uninformative.
 
37321 50 d 11 h amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/client/ Preserve transport-failure cause in RestClient; add 60s regulator timeout profile

RestClient wrapped IOException/ClientProtocolException into RuntimeException(GE_1006)
without a cause, so callers could not tell a read timeout apart from a business
rejection. Pass the original exception as the cause at all four transport catch sites;
message text is unchanged.

Add HttpClientFactory.slowRegulatorRequestConfig() (60s socket) for NIC e-invoice/EWB
calls, which routinely exceed the global 10s default at peak, plus a RestClient
constructor taking an explicit RequestConfig. The global default is unchanged.
 
36479 153 d 8 h ranu /trunk/ code commit for reports section v2  
36416 161 d 9 h amit /trunk/profitmandi-common/ Drop OkHttp, standardise on Apache HttpClient via HttpClientFactory. RestClient pool raised to 20/8, all construction routed through factory. Lint guard added to block direct OkHttp/createDefault usage.  
36320 169 d 7 h vikas /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/ CORS update, accept referrer  
36295 172 d 12 h amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/client/ Plug response-entity leak in RestClient

Apache HttpClient connections are released back to the PoolingConnectionManager
only when the response entity is fully consumed. Error paths in execute(),
executeMandii(), and executeJson() threw before consumeQuietly was called,
leaking pool slots and accumulating CLOSE_WAIT sockets against Solr, Tomcat,
and external APIs. Wrap each in try/finally with EntityUtils.consumeQuietly
so the connection is always returned. Methods that return raw HttpResponse
(getResponse, postResponse) are still caller-close responsibility.
 
36200 183 d 7 h ranu /trunk/ error correctly will show  
35623 249 d 13 h amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/ Switch Reportico service calls from GET to POST to send params as form body  
35418 292 d 14 h aman /trunk/ Fix:Trial Mail For training and activation mail to user  
35387 295 d 11 h amit /trunk/ Fixed cors issue  
35386 295 d 12 h amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/filter/ Added Corsfilter to fix issues related CORS in B2B  
34877 424 d 8 h ranu /trunk/ razor pay x comiit  
34805 446 d 7 h ranu /trunk/ icici insurance policy phase one uploaded  
34545 511 d 11 h vikas.jangra /trunk/ Bidding/Liquidation push notifications  
34405 544 d 11 h vikas.jangra /trunk/ Liquidation/Bidding CURD Operation  
33764 755 d 9 h ranu /trunk/ add idemotency key for double click  
32958 966 d 13 h amit.gupta /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/interceptor/ Fixed changes  
32957 966 d 14 h amit.gupta /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/web/interceptor/ Fixed changes  

Show All