ワールドニュース strat_ai_server
-
Le Pen and Melenchon gain momentum ahead of French 2027 election, poll shows - Reuters
reuters_world | 2026-10-14 16:02 | id : 169841
Le Pen and Melenchon gain momentum ahead of French 2027 election, poll shows Reuters
-
'It's rough out here': Americans struggle with rising inflation
bbc_world | 2026-10-14 15:57 | id : 170150
US inflation continues to rise, and this month the jump was above forecasts. Here's how some are surviving.
-
Burnham says he wants to 'repair bridges' between Ukraine and US
bbc_world | 2026-10-14 15:56 | id : 169671
It comes as the prime minister meets President Zelensky at Downing Street.
-
中朝国境「開かずの橋」15日開通へ
dmenu_world | 2026-10-14 15:56 | id : 169542
-
Toilet paper and secret recorders: What we know about the arrest of the Saudi OpenAI engineer
bbc_world | 2026-10-14 15:54 | id : 169761
Abdulrahman Alfozan had worked for the AI giant for more than a year before he was arrested by the FBI.
-
Jerusalem Daily: UN demands Israel do more to stop settler violence
aljazeera_all | 2026-10-14 15:49 | id : 169773
Netanyahu warns again of Israel’s ‘enemies’ planning an attack before elections.
-
Ronaldo’s among three Saudi Arabia games postponed due to Houthi attacks
aljazeera_all | 2026-10-14 15:49 | id : 169774
Saudi Pro League postpones three matches after Houthi attacks, including one involving Cristiano Ronaldo's Al Nassr.
-
Google Deepmind's Hassabis calls AI hacks 'early warning shots' - Reuters
reuters_world | 2026-10-14 15:48 | id : 169632
Google Deepmind's Hassabis calls AI hacks 'early warning shots' Reuters
-
Sabalenka's slump continues with Wuhan Open exit to Li - Reuters
reuters_world | 2026-10-14 15:48 | id : 169814
Sabalenka's slump continues with Wuhan Open exit to Li Reuters
-
What we know about the deadly Six Flags rollercoaster incident in Georgia
bbc_world | 2026-10-14 15:46 | id : 169420
Hassan Jihad Ibn Kariem died on Monday after police say he was ejected from a ride at an amusement park.
-
Go HTTP Server Returns Incomplete JSON Responses Under Concurrent Requests Despite Successful Handler Execution
golangbridge | 2026-10-14 15:43 | id : 169756
Hi All, I am developing a website backed by a Go application that exposes several HTTP endpoints for retrieving structured data, and I am experiencing an intermittent problem where some requests return incomplete JSON responses even though the corresponding handlers appear to execute successfully. The website uses these endpoints to populate different sections of its interface, so when a response is incomplete, some content fails to appear even though the rest of the page loads normally. The problem is difficult to reproduce with a single request because the endpoints generally work as expected during individual tests. However, when multiple visitors access the website at the same time, I occasionally receive responses that contain only part of the expected JSON object or array. The HTTP status code can still indicate success, which makes the failure less obvious unless I inspect the response body carefully. I am trying to determine whether this behavior could be caused by unsafe concurrent access to shared data, incorrect response-writing logic, or some other issue in my Go server implementation. I want to identify the underlying cause without making assumptions based only on the fact that the problem becomes more noticeable when requests overlap. The backend is written in Go, and the relevant handlers retrieve application data, transform it into structures suitable for JSON encoding, and write the result to the HTTP response. Some of the underlying data is shared across requests so that the application does not need to rebuild everything for every visitor. This arrangement works correctly during normal use, but I am concerned that concurrent requests may sometimes interact with the same data while it is being updated. For example, one request could be preparing a response while another request refreshes a shared map, slice, or cached structure used by the handler. I understand that concurrent access to certain Go data structures can cause problems when synchronization is missing, but I have not established that this is happening in my application. I also want to rule out simpler mistakes, such as returning a partially populated structure, ignoring an encoding error, or writing to the response before all the required data has been collected. I would appreciate advice on how to trace the lifecycle of the data from the moment the handler receives a request until the complete JSON response has been written. One particularly confusing detail is that the affected responses do not always fail in the same way. In some cases, the browser receives a valid JSON document that is missing one or more expected fields, while in other cases the response appears to end before the complete array or object has been returned. I am checking whether the issue occurs before serialization or during the actual response-writing process, because those situations would require different debugging approaches. If the Go application constructs an incomplete structure before encoding it, the problem would likely be somewhere in the data retrieval or application logic. If the structure is complete but the client receives only part of the encoded output, I would need to investigate how the response is written and whether an error occurs after the HTTP headers have already been sent. I know that once a response has started, the server cannot simply replace it with a different status code and a new response body, so I want to understand how to detect and report failures correctly. At the moment, my existing logs do not clearly connect the contents of a particular response with the state of the data used to produce it. I have started reviewing the handlers and adding logging around the retrieval and encoding stages, but I am unsure which additional diagnostics would provide the most useful evidence. I would like to record the request identifier, the number of records selected, the size of the structure before encoding, whether JSON encoding returns an error, and whether writing the response completes successfully. I also plan to run the application with Go’s race detector to check for unsynchronized concurrent access to shared memory, although I understand that it only detects races exercised by the tests and cannot prove that the application is free of them. I am interested in knowing whether there are other recommended testing techniques for reproducing concurrency-related response problems, especially when the issue occurs only after many requests have been processed. Would a targeted test using httptest, multiple goroutines, and a controlled shared data source be a good starting point? I would prefer to build a small reproducible test around the affected handler instead of relying exclusively on live traffic, where the timing and data conditions are harder to control. Another area I am investigating is whether the application updates its shared data in a way that allows a handler to observe an inconsistent intermediate state. The website periodically refreshes some of its backend information, and I want requests to receive a coherent snapshot rather than a mixture of old and new values. If a map or slice is being modified while another goroutine reads it, synchronization may be necessary; alternatively, it may be more appropriate to build a complete replacement data structure and publish it atomically once it is ready. However, I do not want to introduce locks or redesign the caching layer without first determining whether shared-state mutation is actually responsible for the incomplete responses. I would appreciate suggestions on how to structure this type of Go application so that handlers can safely access data while background updates occur. I am particularly interested in approaches that preserve predictable response contents under concurrent traffic without unnecessarily serializing all incoming requests or creating a performance bottleneck. Understanding the trade-offs between mutexes, immutable snapshots, and other suitable concurrency patterns would help me choose an implementation that is both safe and maintainable. Has anyone encountered a similar issue in a Go HTTP server where JSON endpoints behave correctly under individual requests but occasionally return incomplete or inconsistent response bodies under concurrent load? I would appreciate recommendations for isolating the failure, determining whether it originates in the data model or the HTTP response writer, and verifying that each response contains the complete intended payload. If additional information would help, I can share a simplified handler, the relevant data structures, a sample of an affected response, and the results of running concurrent tests with the race detector enabled. I am especially interested in learning which measurements and assertions would make the problem reproducible and how to distinguish a genuine concurrency bug from an application-level issue that produces incomplete data before serialization. My goal is to correct one underlying defect in the Go request-handling path so that the website consistently receives complete JSON responses, even when many users access the same endpoints simultaneously. Any practical debugging advice or examples of safe handler and shared-data patterns would be greatly appreciated. 2 posts - 2 participants Read full topic
-
BofA misses profit estimates on trading weakness, books $1.2 billion charge - Reuters
reuters_world | 2026-10-14 15:43 | id : 169682
BofA misses profit estimates on trading weakness, books $1.2 billion charge Reuters
-
German government in talks to buy 50% of KNDS, source says - Reuters
reuters_business | 2026-10-14 15:42 | id : 169815
German government in talks to buy 50% of KNDS, source says Reuters
-
ハッカー集団Qilin AIで攻撃増か
dmenu_business | 2026-10-14 15:41 | id : 169536
-
JMDCF.PK - Reuters
reuters_business | 2026-10-14 15:40 | id : 169820
JMDCF.PK Reuters
-
米新報道官 紹介された資格持たず?
dmenu_world | 2026-10-14 15:38 | id : 169535
-
ACT.ZY - Reuters
reuters_business | 2026-10-14 15:36 | id : 169908
ACT.ZY Reuters
-
Container ship hit by projectile sinks in Strait of Hormuz, Singapore says
bbc_world | 2026-10-14 15:34 | id : 169760
All 21 sailors on the Singapore-flagged GFS Pride were evacuated safely after it was hit by an projectile on Tuesday, maritime authorities say.
-
Mont Blanc, the ‘roof of Europe’, loses more than a metre of height in a year
guardian_world | 2026-10-14 15:33 | id : 169757
Peak of French mountain now 4,807 metres high and fluctuates year by year due to changes in Alpine climateWestern Europe’s highest mountain shrank by more than a metre last year. The peak of Mont Blanc in France now stands 4,807.47 metres above sea level, a team of surveyors said on Wednesday, putting “the roof of Europe” 1.29 metres lower than in 2025.The mountain is about 4,792 metres tall but the summit constantly shifts as heat, wind and precipitation change the thickness of snow and ice on top. The height scientists recorded during an expedition last month was 1.88 metres greater than it was in 2023, when it reached the lowest levels in recent memory. Continue reading...
-
US inflation rises before midterm elections, fuelling rate hike fears
aljazeera_all | 2026-10-14 15:31 | id : 169752
Economists divided on Fed rate hike as inflation creates uncertainty before US midterm elections in a tense market.
-
蘭ASML、7~9月期の売上高116.6億ユーロ AI需要で10~12月期は最大152億ユーロ見込む
BusinessIT_News | 2026-10-14 15:30 | id : 169527
蘭半導体製造装置大手のASMLは10月14日、2026年7~9月期決算を発表した。売上高は116億6,200万ユーロで4~6月期比25%増、純利益は49億6,000万ユーロ(約8,780億円)だった。10~12月期は売上高142億~152億ユーロ、2026年通期は440億~450億ユーロを見込む。2027~28年は供給が需要に追いつかないとの見方も示した。
-
吉本興業とSBIHD 業務提携で合意
dmenu_business | 2026-10-14 15:26 | id : 169537
-
US inflation rises more than expected - here's what is happening with prices
bbc_world | 2026-10-14 15:26 | id : 169690
The pace of price rises increased to 3.7% in the year to September, driving by higher motor fuel costs.
-
US retirees to receive 3.6% Social Security increase in 2027 - Reuters
reuters_world | 2026-10-14 15:24 | id : 169779
US retirees to receive 3.6% Social Security increase in 2027 Reuters
-
Why Martinez highlighted Manchester United’s woes in Madrid meltdown
aljazeera_all | 2026-10-14 15:24 | id : 169753
Amid Premier and Champions League woes, Man United players and fans ponder how preseason optimism has turned to despair.
-
US cuts Obamacare subsidies for 189,000 with duplicate coverage - Reuters
reuters_world | 2026-10-14 15:22 | id : 169811
US cuts Obamacare subsidies for 189,000 with duplicate coverage Reuters
-
OpenAI employee who left for Apple took files about unreleased device, OpenAI alleges - Reuters
reuters_world | 2026-10-14 15:21 | id : 169764
OpenAI employee who left for Apple took files about unreleased device, OpenAI alleges Reuters
-
EEAX.DE - Reuters
reuters_business | 2026-10-14 15:18 | id : 169892
EEAX.DE Reuters
-
Judge extends White House access for US media outlets amid Trump standoff
aljazeera_all | 2026-10-14 15:15 | id : 169754
CNN, MS Now and Politico can continue to access White House as judge maintains Trump's ban likely illegal.
-
Pope walking and recovering 'as expected' after surgery, doctors say
bbc_world | 2026-10-14 15:12 | id : 169733
The 71-year-old Pope was diagnosed with lung cancer after the 90-minute procedure on Tuesday.